Get the code of any D-entity as string?
Ali Çehreli
acehreli at yahoo.com
Fri Dec 25 23:04:15 UTC 2020
On 12/25/20 1:25 PM, sighoya wrote:
> Is generally possible to get the declaration of a type/module/value as
> string in traits?
I am probably misunderstanding it but there is the .stringof property
for all types: T.stringof.
> I want also to read
> declarations from types outside my source folders, e.g. from those
> located in dyn libs.
I am probably stating the obvious but you normally import the
interesting modules of that library anyway and the type information is
available that way.
Ali
More information about the Digitalmars-d-learn
mailing list