SHORT Re: Suggestion: "fix" assert(obj)

Tom S h3r3tic at remove.mat.uni.torun.pl
Sat Jun 16 12:38:51 PDT 2007


Walter Bright wrote:
> sambeau wrote:
>> While I get your point completely I believe this style of debugging is 
>> only really useful to the hard-core professional.
>>
>> For the novice, where the debugger is a scary place of last resort, it 
>> would be more useful to have an assert too. All most of us want is a 
>> line number: and segfaults don't give us that.
> 
> They do when combined with symbolic debug info - that is how the 
> debugger is able to display your source code with the highlighted line 
> where it seg faulted.

Uh... I just don't feel like teaching all my potential testers what a 
debugger is, and that they should always run the game from within the 
debugger, or I won't be able to help when something goes wrong :/


-- 
Tomasz Stachowiak
http://h3.team0xf.com/
h3/h3r3tic on #D freenode



More information about the Digitalmars-d mailing list