John

how can I know the order and the iv that are used by the plugin?

Stef

On Apr 17, 2010, at 4:09 AM, John M McIntosh wrote:

> (a) In Sophie   
> RomeCanvas subclass: #RomePluginCanvas
>       instanceVariableNames: 'handle target flags strokeColor stack font 
> fontSize fontMatrix currentFillColor currentBackColor glyphAccuracy 
> cachedGlyphBlt cachedClearBlt drawRunPositions drawRunGlyph drawRunPointY'
>       classVariableNames: 'CachedTarget FlagFill FlagStro
> 
> (b) In Pharo 
> 
> RomeCanvas subclass: #RomePluginCanvas
>       instanceVariableNames: 'handle target flags strokeColor stack font 
> fontSize fontMatrix'
>       classVariableNames: 'FlagFill FlagStroke Registry'
>       poolDictionaries: ''
>       category: 'Rome-PluginCanvas'
> 
> Comment warning: 
> 
> INST VAR ORDER IS KNOWN TO PLUGIN! DO NOT REARRANGE!
> 
> 
> So in the plugin we have... 
> 
> if (interpreterProxy->slotSizeOf(canvasOop)) < CanvasInstSize)
>       fail().
> 
> 
> where CanvasInstSize is 13
> 
> but as you see in (b) the number of instance slots for the canvas Oops is  8. 
> 
> 8 < 13, oops you fail. 
> 
> So where did the instance vars   currentFillColor currentBackColor 
> glyphAccuracy cachedGlyphBlt cachedClearBlt
> go? On purpose gone, refactored, old code. etc.... 
> 
> 
> On 2010-04-16, at 1:37 PM, Stéphane Ducasse wrote:
> 
>> 
>> On Apr 16, 2010, at 10:30 PM, John McIntosh wrote:
>> 
>>> Well I'm just as puzzled as you since the primitive gets executed and you 
>>> are using the same binary that was shipped with Sophie years back. 
>> 
>> I like to hear that because I feel less idiot. :)
>> 
>> 
>> 
>> 
>> _______________________________________________
>> Pharo-project mailing list
>> Pharo-project@lists.gforge.inria.fr
>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
> 
> --
> ===========================================================================
> John M. McIntosh <john...@smalltalkconsulting.com>   Twitter:  squeaker68882
> Corporate Smalltalk Consulting Ltd.  http://www.smalltalkconsulting.com
> ===========================================================================
> 
> 
> 
> 
> _______________________________________________
> Pharo-project mailing list
> Pharo-project@lists.gforge.inria.fr
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


_______________________________________________
Pharo-project mailing list
Pharo-project@lists.gforge.inria.fr
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

Reply via email to