Re: Source File and Position of User Defined Type

2014-06-11 Thread Nordlöw
I don't believe this is possible. Perhaps you would be able to How about adding __traits(sourceFile, T) __traits(sourceLine, T) __traits(sourceColumn, T) to DMD? T of course must be a user-defined type.

Re: Source File and Position of User Defined Type

2014-06-11 Thread Kapps via Digitalmars-d-learn
On Tuesday, 10 June 2014 at 20:58:41 UTC, Nordlöw wrote: Is there a way to, programatically (trait), lookup the source file and position of a user defined type either dynamically or, even better, statically? I don't believe this is possible. Perhaps you would be able to generate the .json file

Re: Source File and Position of User Defined Type

2014-06-11 Thread Matt via Digitalmars-d-learn
On Tuesday, 10 June 2014 at 20:58:41 UTC, Nordlöw wrote: Is there a way to, programatically (trait), lookup the source file and position of a user defined type either dynamically or, even better, statically? I don't know about the source file, per se, but std.traits has the fullQualifiedName!

Source File and Position of User Defined Type

2014-06-10 Thread Nordlöw
Is there a way to, programatically (trait), lookup the source file and position of a user defined type either dynamically or, even better, statically?