• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: C local auto-initialized?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: C local auto-initialized? [SOLUTION AND APOLOGY]
      • From: Fritz Anderson <email@hidden>
References: 
 >Re: C local auto-initialized? (From: Greg Guerin <email@hidden>)
 >Re: C local auto-initialized? (From: Fritz Anderson <email@hidden>)
 >Re: C local auto-initialized? (From: Chris Suter <email@hidden>)
 >Re: C local auto-initialized? (From: Fritz Anderson <email@hidden>)
 >Re: C local auto-initialized? (From: Laurence Harris <email@hidden>)

  • Prev by Date: Re: C local auto-initialized?
  • Next by Date: Re: C local auto-initialized?
  • Previous by thread: Re: C local auto-initialized?
  • Next by thread: Re: C local auto-initialized? [SOLUTION AND APOLOGY]
  • Index(es):
    • Date
    • Thread