Ya, in fact when traits (If I recall correctly) were first introduced I started getting complains about the JPEG primitive decoder failing. Turns out it uses the "known" order of instance variables to read data into C variables so it can do calculations. Earlier versions of Traits, changed the order, that would break the math and decisions in the decoder primitive, so it would fail.
Of course everything in the smalltalk walkback looked fine...
On Aug 20, 2007, at 10:29 PM, Craig Latta wrote:
Hi Göran--
...do we care about changing the ORDER of say instvars?
I think we should, if we are to support direct installation of
compiled methods (without recompiling from source code), since methods use instructions that refer to the receiver's instance variables explicitly by field index.
-C
-- Craig Latta improvisational musical informaticist www.netjam.org Smalltalkers do: [:it | All with: Class, (And love: it)]
-- ======================================================================== === John M. McIntosh johnmci@smalltalkconsulting.com Corporate Smalltalk Consulting Ltd. http://www.smalltalkconsulting.com ======================================================================== ===