Why does D not have generics?
Ola Fosheim Grøstad
ola.fosheim.grostad at gmail.com
Sat Jan 16 07:40:01 UTC 2021
On Saturday, 16 January 2021 at 06:57:53 UTC, Ola Fosheim Grostad
wrote:
> On Saturday, 16 January 2021 at 06:33:13 UTC, Bruce Carneal
> wrote:
>> It sounds like mappings to arbitrary precision big endian
>> unsigned is where you're headed currently.
>
> More like converting to ulong snd ucent. But CPUs have
> instructions for endian conversion so that is ok. Converting
> from signed to unsigned is just one add.
Or, more precisely, make it architecture dependent. I guess that
is the crux.
The library has to provide inline-able conversion operations.
More information about the Digitalmars-d
mailing list