From: Joachim Protze <joachim.protze@wh2.tu-dresden.de>
To: gdb@sourceware.org
Subject: Re: printing array in function
Date: Fri, 03 Sep 2010 23:10:00 -0000 [thread overview]
Message-ID: <4C818051.7080208@wh2.tu-dresden.de> (raw)
In-Reply-To: <4C814A14.6050509@lip6.fr>
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
prev parent reply other threads:[~2010-09-03 23:10 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-03 9:06 Nicolas Sabouret
2010-09-03 9:16 ` Jan Kratochvil
2010-09-03 9:38 ` Nicolas Sabouret
2010-09-03 10:24 ` Steffen Dettmer
2010-09-03 16:21 ` Andreas Schwab
2010-09-03 19:18 ` Nicolas Sabouret
2010-09-03 23:10 ` Joachim Protze [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4C818051.7080208@wh2.tu-dresden.de \
--to=joachim.protze@wh2.tu-dresden.de \
--cc=gdb@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox