Cannot alias null

Tom Browder via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Jun 12 13:26:13 PDT 2014


This will not compile:

  alias blah = null;

The dmd message are:

di/test_hdr.d(10): Error: basic type expected, not null
di/test_hdr.d(10): Error: semicolon expected to close alias declaration
di/test_hdr.d(10): Error: Declaration expected, not 'null'

Are there any other objects that cannot be aliased?

Thanks,

Best,

-Tom


More information about the Digitalmars-d-learn mailing list