Non-nullable references, again
Benji Smith
dlanguage at benjismith.net
Fri Jan 2 18:39:52 PST 2009
Michel Fortin wrote:
> On 2009-01-02 10:37:50 -0500, Benji Smith <dlanguage at benjismith.net> said:
>
>>> case a?.b:c:
>>> break;
>>>
>>> is this
>>>
>>> case ((a?).b):
>>> c:
>>> break;
>>>
>>> or is it
>>>
>>> case (a ? b : c ) :
>>> break;
>
> How's this different from
>
> case a*.b:
>
> is this:
>
> case ((a*).b):
>
> or is it:
>
> case ((a) * (.b)):
>
>
Think of it like this:
MyClass?.myProperty
It's a static field of the nullable MyClass type.
--benji
More information about the Digitalmars-d
mailing list