Hi Rob,<br><br><div class="gmail_quote">On Sun, Jul 4, 2010 at 10:12 AM, Rob Withers <span dir="ltr">&lt;<a href="mailto:reefedjib@yahoo.com">reefedjib@yahoo.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
Eliot,<br>
<br>
I noticed that MessageTally was broken in Cog (which may or may not have anything to do with Coc).  It broke in MessageTally&gt;&gt;#spyEvery:on: inside the following code:<br>
<br>
        &quot;Collect gc statistics&quot;<br>
        SmalltalkImage current getVMParameters keysAndValuesDo: [ :idx :gcVal |<br>
                gcStats at: idx put: (gcVal - (gcStats at: idx))].<br>
<br>
gcVal was nil for index 4.  I looked at all the VMParameters and there are several nil values.  Is this a Cog thing?  </blockquote><div><br></div><div>Yes.  There are several vm parameters which are obsolete in Cog.  Answering nil is IMO better than answering some fake value such as 0. Better to provoke an error when fed with bad data than to hide the bug.</div>
<div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Should all VMParameters be non-nil?  </blockquote><div><br></div><div>IMO, no.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Should MessageTally change to protect against nil values?<br></blockquote><div><br></div><div>See <span class="Apple-style-span" style="font-family: arial, helvetica, sans-serif; border-collapse: collapse; ">[squeak-dev] The Trunk: System-ul.346.mcz</span></div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
Thanks,<br>
Rob<br>
<br>
----<br>
The Modern Whig Party of Virginia - <a href="http://vawhigs.org" target="_blank">http://vawhigs.org</a><br>
<br>
<br>
<br>
</blockquote></div><br>