A few questions

Simen Kjaeraas simen.kjaras at gmail.com
Fri Jul 27 06:14:41 PDT 2012


On Fri, 27 Jul 2012 14:44:35 +0200, bearophile <bearophileHUGS at lycos.com>  
wrote:

> Namespace:
>
>> Then: What is the problem to introduce such shorthand?
>
> I don't know.
> I have a partial enhancement on the topic:
> http://d.puremagic.com/issues/show_bug.cgi?id=4571
>
> Bye,
> bearophile

I believe at least part of the explanation is that Walter wants NotNull to
implemented in a library. That's part of the reason for introducing
@disable this().

Now, one could certainly argue that int? be translated by the compiler into
NotNull!int, and the implementation lie in druntime.

-- 
Simen


More information about the Digitalmars-d-learn mailing list