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

Walter Bright newshound1 at digitalmars.com
Sat Jun 16 12:12:54 PDT 2007


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.


> 
> If we also have an assert, hard-core programers can choose whether to assert or segfault, surely?.
> <lurk>



More information about the Digitalmars-d mailing list