state of the art with Typedef

John Colvin via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sat Nov 1 16:18:34 PDT 2014


What are the known pitfalls of std.typecons.Typedef as of now?

Things I know:

Have to use a cookie string to get a proper unique type.

Have to explicitly specify an init in order to specify a cookie.

Doesn't support "is" keyword.

Isn't nice to look at in error messages.

Relies on optimisations to alias itself away.

Are there any more?


More information about the Digitalmars-d-learn mailing list