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.