Cannot alias null
Ali Çehreli via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Thu Jun 12 14:17:45 PDT 2014
On 06/12/2014 02:06 PM, Tom Browder via Digitalmars-d-learn wrote:
> What I was really trying to do was D'ify C expressions like this:
>
> typedef ((struct t*)0) blah;
Is that actually a function pointer typedef? I can't parse that line. :)
> So, taking your advice, I found this to work (at least it compiles as
> a translation:
>
> alias blah = typeof(null);
I suspect you need something else. :)
Ali
More information about the Digitalmars-d-learn
mailing list