64Bit compatibility warnings

Matt Soucy msoucy at csh.rit.edu
Fri Jan 20 17:29:55 PST 2012


On 01/20/2012 08:24 PM, Matt Soucy wrote:
> On 01/20/2012 08:21 PM, Stewart Gordon wrote:
>> On 21/01/2012 01:16, Timon Gehr wrote:
>> <snip>
>>> I generally like the idea of making size_t strongly typed, but
>>> that would necessitate X!size_t to become a distinct instantiation
>>> from X!uint or X!ulong.
>>> Furthermore, it would break all existing D programs that are
>>> deliberately not 64 bit aware
>>> =).
>>
>> You mean compilers that target a 32-bit platform and rely on the runtime
>> environment to ensure CTFE is consistent with runtime evaluation of the
>> same function?
>>
>> Stewart.
>
> Couldn't it be handled by a special switch on 64 bit compilers, and
> disabled normally? That way, the default behavior doesn't change, but
> all one would have to do is say "
> -Matt Soucy
...I totally meant "-alertx64compatability", but a "-MattSoucy" compiler 
flag would be amusing as well. And scary that I would warrant a compiler 
flag.
Either way, a flag like that would still require making size_t strongly 
typed...
-Matt Soucy


More information about the Digitalmars-d mailing list