Aquivalent References as in C++?

Namespace rswhite4 at googlemail.com
Wed Apr 18 00:09:21 PDT 2012


On Tuesday, 17 April 2012 at 23:56:12 UTC, bearophile wrote:
> Namespace:
>> Another idea: instead scope, "in" can get a new functionality. 
>> Instead as a synonym for "const" it could mean "not null" for 
>> objects.
>
> Note that currently in D2 "in" means "scope const".
>
> Bye,
> bearophile

Yes I know. But the importand fact is that it's only a shorthand, 
you could use it for something more meaningful.
I only want to point out how important this content is to me.
Many user in other languages are wishing for a non-null reference 
keyword (e.g. Java, C#). So why should D don't give a solution?

But i think, i'm probably the only one in D who really wants 
something like that.


More information about the Digitalmars-d-learn mailing list