The Do-It Yourself Guide to Squeak Primitives


7. Add an Entry to the Interpreter's Primitive Table

Look at Interpreter class's initializePrimitiveTable method; edit it in-place or add your own init. method. (Be sure to use the same prim. number you used in step 5 above.)

...
(614 primitiveReadMIDIPacket) ...

The init. method is called automagically when you regenerate the interpreter, so you don't have to do that now.

Although there is no formal method for registering primitive numbers, Ward Cunningham's Wiki server does have a page for "voluntary" reservations (see http://c2.com:8080/PrimitiveNumberRegistry). I strongly recommend that you coordinate with other developers by looking here and telling the world what numbers you're using.