Motivation for compile time function execution

Walter Bright newshound at digitalmars.com
Thu Feb 15 18:00:48 PST 2007


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.



More information about the Digitalmars-d mailing list