just an idea (!! operator)

Jonas Drewsen jdrewsen at nospam.com
Thu Jul 12 04:35:52 PDT 2012


On Wednesday, 11 July 2012 at 11:18:21 UTC, akaz wrote:
> if needed, the operator !! (double exclamation mark) could be 
> defined.
>
> ...

Or the operator?? could be borrowed from c#

auto a = foo ?? new Foo();

is short for:

auto a = foo is null ? new Foo() : foo;

/Jonas



More information about the Digitalmars-d mailing list