Non-nullable references, again

Michel Fortin michel.fortin at michelf.com
Fri Jan 2 20:05:24 PST 2009


On 2009-01-02 21:39:52 -0500, Benji Smith <dlanguage at benjismith.net> said:

> Think of it like this:
> 
>    MyClass?.myProperty
> 
> It's a static field of the nullable MyClass type.

Just like:

	MyStruct*.myProperty

It's a static field of the struct for which you have a pointer to. 
Exact that for it to compile, you need to write:

	(MyStruct*).myProperty

I propose we do things the same way for "?".

-- 
Michel Fortin
michel.fortin at michelf.com
http://michelf.com/




More information about the Digitalmars-d mailing list