[Vm-dev] [commit][3704] converting int to pointer is 64bits risky,
better use long even for dummy
Eliot Miranda
eliot.miranda at gmail.com
Sat May 7 14:49:08 UTC 2016
> On May 6, 2016, at 10:41 PM, Tobias Pape <Das.Linux at gmx.de> wrote:
>
>
>
>> On 07.05.2016, at 00:20, Eliot Miranda <eliot.miranda at gmail.com> wrote:
>>
>>
>>
>>
>>> On May 6, 2016, at 1:37 PM, commits at squeakvm.org wrote:
>>>
>>>
>>> Revision: 3704
>>> Author: nice
>>> Date: 2016-05-06 13:37:49 -0700 (Fri, 06 May 2016)
>>> Log Message:
>>> -----------
>>> converting int to pointer is 64bits risky, better use long even for dummy
>>
>> It isn't risky, it's broken :-)
>
>
> What about intptr_t then?
Rejected because it's a pretentious neologism, and because it's not a basic type. long however, is a basic type, is big enough to hold a pointer, is not pretentious, and is, in fact what intptr_t is defined in terms of anyway.
If we have to add support for all the possible renaming a if the basic integer types in the type inference machinery we'll have numbers in the double digits. KISS.
>
> Best regards
> -tobias
More information about the Vm-dev
mailing list