[Vm-dev] [squeak-dev] Endless recursion: "String new: -1"
Tobias Pape
Das.Linux at gmx.de
Thu Jul 7 21:30:36 UTC 2016
On 07.07.2016, at 23:24, Eliot Miranda <eliot.miranda at gmail.com> wrote:
>
>
>
>> On Jul 7, 2016, at 2:03 PM, Tobias Pape <Das.Linux at gmx.de> wrote:
>>
>>
>>
>>> On 07.07.2016, at 19:48, Eliot Miranda <eliot.miranda at gmail.com> wrote:
>>>
>>> I disagree. There are implementation limits. So answering #'unsupported operation' or #'bad argument 's as logical and defensible as #'out of memory' and actually truer. The VM does /not/ try and allocate memory beyond the address space size. So actually the failure for > the range 0 to 2^32-1 or 0 to 2^64-1 as #'out of memory' is untrue; the reason is not because the ysste, os out of memory; the reason is that this is a bad argument, outside of the valid range of the primitive.
>>
>> Disregarding my other tongue in cheek reply,
>> does that mean, the test worked in older images/Vms, because those treated every failure due to
>> arguments (be it size or kind) as 'out of memory'?
>
> Not quite. The code used to work because there were no primitive error codes and so u teepee ration of wha was wrong was left up to the image code, inferring (sometimes inaccurately) what had failed from the arguments.
That makes sense.
Thanks
-Tobias
>
>>
>> Best regards
>> -Tobias
More information about the Vm-dev
mailing list