A couple of thoughts/queries.

Frank Benoit keinfarbton at googlemail.com
Sat Dec 8 02:40:18 PST 2007


Walter Bright schrieb:
> Robby wrote:
>> Anyways, what I'm in hopes of finding is a way to tell the compiler
>> that I never want null, ever. I want an instance of the class and
>> that's that. The whole idea of taking every lil runtime hit for
>> checking  and the code cruft for writing it when in fact it's
>> something that seems to be easy for a compiler to do the work for me.
> 
> The hardware will do the check for null pointer for you every time you
> do a dereference.

I think he is talking about compile time check.
Something like non nullable storage class?



More information about the Digitalmars-d mailing list