typedef '?

Dicebot public at dicebot.lv
Wed Nov 20 03:40:51 PST 2013


On Wednesday, 20 November 2013 at 10:54:31 UTC, evilrat wrote:
> On Wednesday, 20 November 2013 at 10:49:19 UTC, seany wrote:
>> is typedef gone?
>> http://forum.dlang.org/thread/aqsjjrtzfzslcopabqgs@forum.dlang.org?page=2
>>
>> so If I want to define a new type as typedef string[] 
>> surrealNumber, then it does not work?
>
> it is replaced with alias.
> so for ur case this would looks like "alias string[] 
> surrealNumber;" or "alias surrealNumber = string[];"

Those are not equivalent. Alias does not create new type.


More information about the Digitalmars-d-learn mailing list