A simple rule

downs default_357-line at yahoo.de
Fri Jul 31 00:55:27 PDT 2009


Lars T. Kyllingstad wrote:
> downs wrote:
>> To clarify for a few criticisms that have come up in IRC: this is
>> meant as a rule of thumb to fall back on where no other considerations
>> are present.
>>
>> For instance, const and shared are type constructors, and as such hard
>> to do in the standard library.
>>
>> To my knowledge, assert() for instance has no such mitigating
>> considerations.
> 
> assert statements are skipped in release mode. We'd need a
> version(norelease) or something if assert() was to be moved to the
> standard library.
> 
> -Lars

Or, yanno, an inliner.



More information about the Digitalmars-d mailing list