DeltaStreams small update

Andrew Tween amtween at hotmail.com
Tue Aug 21 07:59:42 UTC 2007


Hi,
<goran at krampe.se> wrote in message 
news:20070821010142.44AC5EF5E0 at mail.krampe.se...
> Hi all!
>
> Ok, managed to get some more code written tonight - but I am still on a
> low level here - matching up with ChangeSet etc. But if anyone wants to
> join in:
>
> See details here: http://wiki.squeak.org/squeak/6001
>
> The first goal is to make DSDelta work as a "true log" capturing all
> changes in full detail.
>
> One question for you gurus out there - do we care about changing the
> ORDER of say instvars?

yes,the order can be important.
A concrete example...

FT2Plugin>>primitiveGetFaceCharMap makes an assumption about the position 
(and therefore the order) of an FT2Face's instVars...
 "platformId 23"
 interpreterProxy
  storeInteger: 23
  ofObject: rcvr
  withValue: (self cCode: 'charmap->platform_id').

 "encodingId 24"
 interpreterProxy
  storeInteger: 24
  ofObject: rcvr
  withValue: (self cCode: 'charmap->encoding_id').

If the order of the platformId and encodingId instVars were somehow 
reversed, then the plugin would write to the wrong slots.

Cheers,
Andy

>
> regards, Göran
>
> 





More information about the Squeak-dev mailing list