From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30928 invoked by alias); 3 Sep 2010 23:10:18 -0000 Received: (qmail 30920 invoked by uid 22791); 3 Sep 2010 23:10:16 -0000 X-SWARE-Spam-Status: No, hits=-0.1 required=5.0 tests=AWL,BAYES_20,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from atlantis.wh2.tu-dresden.de (HELO atlantis.wh2.tu-dresden.de) (141.30.228.39) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 03 Sep 2010 23:10:11 +0000 Received: from [141.30.223.201] (x0862b.wh5.tu-dresden.de [141.30.223.201]) by atlantis.wh2.tu-dresden.de (Postfix) with ESMTPSA id 4E4246AC0C for ; Sat, 4 Sep 2010 00:55:27 +0200 (CEST) Message-ID: <4C818051.7080208@wh2.tu-dresden.de> Date: Fri, 03 Sep 2010 23:10:00 -0000 From: Joachim Protze User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.9) Gecko/20100515 Icedove/3.0.4 MIME-Version: 1.0 To: gdb@sourceware.org Subject: Re: printing array in function References: <4C80BA7A.3030309@lip6.fr> <4C814A14.6050509@lip6.fr> In-Reply-To: <4C814A14.6050509@lip6.fr> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2010-09/txt/msg00017.txt.bz2 Hi, Am 03.09.2010 21:18, schrieb Nicolas Sabouret: > I think we will have to write a specific parser... or to use other > pedagogical artifacts. As a student in the final phase of the study of computer science i do not see the benefit of feigning your students to wrong facts. Within the function f there is no knowledge of the length of the array. Why do you want to display it anyway? The only effect is to give the students a wrong insight to C. The consequence is, that they will tend to produce code with buffer overflows. > (we want our students to lear the proper C-syntax) Proper C-syntax, but wrong C-semantik ?!? Joachim