Motivation for compile time function execution
Don Clugston
dac at nospam.com.au
Thu Feb 15 23:43:41 PST 2007
Walter Bright wrote:
> Miles wrote:
>> Walter Bright wrote:
>>> Miles wrote:
>>>> Is there some rationale for not using an MD5 hash of the string?
>>> It's not reversible - no pretty printing, no demangling, etc.
>>
>> For common usage, does it really need to be reversible?
>
> Problem is, I can't tell when the uncommon use is required.
>
>> Pretty printing and demangling are only used for debugging purposes, so,
>> this information should go to debug sections of the object file, that
>> are not loaded into memory unless you are running the debugger. And let
>> the debugger use that information to extract what the symbol means.
>
> Don has based some runtime reflection code on demangling names.
I wonder how relevant that still is.... <g>
More information about the Digitalmars-d
mailing list