<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On 07.10.2009, at 22:37, Michael van der Gulik wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><br><br><div class="gmail_quote">On Wed, Oct 7, 2009 at 9:17 PM, Torsten Bergmann <span dir="ltr">&lt;<a href="mailto:astares@gmx.de">astares@gmx.de</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
VisualWorks throws an exception "Size exceeds implementation limit of 2^28 elements".<br>
<br>
Pharo and Squeak also crash the VM when you evaluate:<br>
<br>
 &nbsp; (Array new: SmallInteger maxVal) last<br>
<br>
What is interesting is that when you doIt in Squeak trunk:<br>
<br>
(Array new: SmallInteger maxVal) last<br>
<br>
nothing happens, but VM crashes when you printIt<br>
<br>
In Pharo VM already crashes when you just doIt.<br>
<br>
It crashes in both when you inspectIt.<br>
<font color="#888888"><br></font></blockquote><div><br>...should this be fixed in the image or the VM? <br><br>Is it the responsibility of the image to make sure that the VM isn't passed insane values, or is the responsibility of the VM to not crash when the image asks for insane values.<br></div></div></blockquote><div><br></div>The latter.</div><br><div>
<span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Lucida Grande; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><div style="font-family: Helvetica; "><span class="Apple-style-span" style="font-family: Helvetica; ">- Bert -</span></div><br class="Apple-interchange-newline"></span>
</div>
<br></body></html>