another cool RTInfo trick - i want in runtime
Meta
jared771 at gmail.com
Thu Jan 16 16:03:19 PST 2014
On Thursday, 16 January 2014 at 23:56:14 UTC, Adam D. Ruppe wrote:
> // use it! notice that it is notnull already
> auto na = create!A();
That's neat. Didn't Andrei mention something about wanting new to
be removed from the language and replaced with a library solution
using allocators? If that were the case, it'd be pretty easy to
enforce that class allocators return NotNull!T. It'd get rid of
nullable references without needing a breaking language change.
More information about the Digitalmars-d
mailing list