typedef, why did it go? Is there anything instead?

Gor Gyolchanyan gor.f.gyolchanyan at gmail.com
Mon Jan 23 01:59:29 PST 2012


Wouldn't it be easier to make the typedef a Phobos solution and end
this debate once and for all?
Sure, the definition won't look as pretty as typedef did, but still...

On Mon, Jan 23, 2012 at 1:22 AM, Nick Sabalausky <a at a.a> wrote:
> "Walter Bright" <newshound2 at digitalmars.com> wrote in message
> news:jfhj4v$l2b$1 at digitalmars.com...
>> On 1/22/2012 9:44 AM, equinox at atw.hu wrote:
>>> I noticed I cannot use typedef any longer in D2.
>>> Why did it go?
>>
>> typedef turned out to have many difficult issues about when it was a
>> distinct type and when it wasn't.
>
> Fortunately, you should still be able to get the same effect of typedef with
> a struct and alias this.
>
>



-- 
Bye,
Gor Gyolchanyan.


More information about the Digitalmars-d mailing list