[squeak-dev] Preamble mess

Igor Stasenko siguctua at gmail.com
Tue Dec 22 00:39:01 UTC 2009

> OK, and also deal with opaque prior decoding...

i am a dreamer..
normally such facility should just listen a SystemChangeNotifier,
and blindly log all sources..
It should not interfere with classes/changesets etc. Classes should
have no idea about 'logging'.
They should just notify all interesting parties about new change.

In theory we also should have a layered systemevent handling
- before change
- after change

Currently a SystemChangeNotifier notifies about something which is
already done,
disrespecting those, who might want to prepare themselves for such change.

Obviously, in case of SourceCodeManager, it should
prepare a buffer with source code for writing, and precalculate a
sourcePointer which new method should obtain,
and pass this sourcePointer in form of trailer to the MethodNode,
before new method could even have a chance to be
And then if it receives a confirmation, that given change is
successfully applied - write a source code to file (or anywhere it
likes to).

Of course, currently, this also could be done as a hack by simply
making a postpone become-a-copy of method using #copyWithTrailerBytes:
and placing the source pointer.

Best regards,
Igor Stasenko AKA sig.

More information about the Squeak-dev mailing list