Library Typedefs are fundamentally broken

Walter Bright via Digitalmars-d digitalmars-d at puremagic.com
Wed Sep 17 02:43:31 PDT 2014


On 9/17/2014 2:37 AM, Walter Bright wrote:
> If such a thing were implemented in D, one could not depend on the values being
> globally unique, nor consistent when a module is compiled vs imported, nor
> consistent when multiple modules are compiled together vs compiled
> independently, nor even any predictable relationship between the values within a
> particular module (because semantic analysis is not supposed to be order
> dependent).

You're probably better off simply using __LINE__ instead.


More information about the Digitalmars-d mailing list