Deprecated typedef

bearophile bearophileHUGS at lycos.com
Fri Dec 16 04:53:31 PST 2011


Don:

> Why not just change your D1 code to use alias instead of typedef?

Walter introduced typedef in D1 for a purpose: it introduces stronger static typing. So if in future you will want to modify/refactor your D1 code, typedefs will help you avoid introducing some bugs. If you replace them with alias, you lose something.

Bye,
bearophile


More information about the Digitalmars-d mailing list