Cannot alias null
Tom Browder via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Thu Jun 12 14:52:04 PDT 2014
On Thu, Jun 12, 2014 at 4:17 PM, Ali Çehreli
<digitalmars-d-learn at puremagic.com> wrote:
> 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;
...
>> 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. :)
Undoubtedly, indeed! [Still a WIP (work in progress).]
Best,
-Tom
More information about the Digitalmars-d-learn
mailing list