September 25, 2006 Re: [Issue 360] Compile-time floating-point calculations are sometimes inconsistent | ||||
---|---|---|---|---|
| ||||
Posted in reply to xs0 | 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.
|
Copyright © 1999-2021 by the D Language Foundation