[Issue 360] Compile-time floating-point calculations are sometimes inconsistent

Walter Bright newshound at digitalmars.com
Mon Sep 25 12:22:17 PDT 2006


xs0 wrote:
> Walter Bright wrote:
>> Don Clugston wrote:
>>> One consequence of that would be in the name mangling for floating 
>>> point  constants in templates. Currently it's 20 hex characters, 
>>> which only makes sense for a system with 80-bit reals; might be 
>>> better to make it 32 hex characters, even if the extra 12 are all '0'.
>>
>> I'm reluctant to do that because there are already problems with the 
>> mangled names getting too long.
> 
> What if you used characters other than A-F to compress the zeros?
> 
> G = 2 * '0'
> H = 3 * '0'
> ...
> Z = 21 * '0'

Compression is one solution.



More information about the Digitalmars-d-bugs mailing list