[Newbies] Questions about primitives - how to avoid one ?
cdrick65 at gmail.com
Mon Feb 18 00:10:41 UTC 2008
> If you comment out the primitive like this is should definitely work:
If I comment out the primitive, in Float>>= ... and put a self halt
after, the halt point has no effect.
> Load the VMMaker package to see the source code. Look at
> Interpreter class>>initializePrimitiveTable to find the method that
> implements primitive 47, which is #primitiveFloatEqual. Find implementers
> of #primitiveFloatEqual, and you will have the Smalltalk source code.
> This will be translated from Smalltalk to C when you generate the VM,
> and the resulting C is what implements the primitive.
Ok, I 'll have a look :)
More information about the Beginners