Re: C local auto-initialized?
Re: C local auto-initialized?
- Subject: Re: C local auto-initialized?
- From: Fritz Anderson <email@hidden>
- Date: Thu, 20 Sep 2007 21:15:39 -0500
On Sep 20, 2007, at 9:04 PM, Laurence Harris wrote:
The nature of the code you posted is such that I don't see a bug. In
my mind a bug is something that can prevent code from consistently
producing the correct result or behavior, but this code is not
trying to do anything. That is, there is no "correct" result against
which you can compare actual results, so how can you say it isn't
working correctly and therefore has a bug?
I obviously did not make clear the concept of a "minimal test case."
Such things exhibit the behavior one is asking about, but are stripped
of the code that might make them generally useful or interesting. The
original code had a "correct" result.
If your goal is to teach them how to use that skill to track down a
bug, give them some code with a known expected result that isn't
achieved so they can trace through the code and identify when things
go wrong.
Yes. Thank you. I do that.
— F
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden