bearophile wrote:
Walter:With D, the D compiler will create ModuleInfo and TypeInfo objects, which more or less rely on some sort of D runtime existing.In LDC there are no_typeinfo (and in maybe no_moduleinfo) pragmas to disablethe generation of those for specific types/modules: http://www.dsource.org/projects/ldc/wiki/Docs#no_typeinfopragma(no_typeinfo) { struct Opaque {} } If it's useful then something similar may be added to DMD too.
I think it's best to avoid such things.
