Squeak
  links to this page:    
View this PageEdit this PageUploads to this PageHistory of this PageTop of the SwikiRecent ChangesSearch the SwikiHelp Guide
MethodWrappers for Squeak
Last updated at 2:13 pm UTC on 16 January 2006
Robert Hirschfeld (hirschfeld@acm.org) wrote

Here is a port of John Brant's MethodWrappers.
It is based on his version for VisualWorks 3.0 (1999-04-17).

[Squeak3.0, latest update: #3552]
http://www.prakinf.tu-ilmenau.de/~hirsch/Projects/Squeak/MethodWrappers/20010619/MethodWrappers.19Jun1221.cs.gz

[Squeak3.1alpha, latest update: #4081]
http://www.prakinf.tu-ilmenau.de/~hirsch/Projects/Squeak/MethodWrappers/20010619/MethodWrappers.19Jun1146.cs.gz

The only difference between the versions for 3.0 and 3.1alpha is
in the use of WeakIdentityKeyDictionary from 3.1alpha.

More detailed information about MethodWrappers can be found at the
MethodWrappers home page:
http://st-www.cs.uiuc.edu/~brant/Applications/MethodWrappers.html
or from the paper 'Wrappers to the Rescue' by John Brant, Brian Foote,
Ralph Johnson, and Don Roberts:
http://www.laputan.org/brant/brant.html

I haven't used this port that much myself since I took a subset
of it to do something else, but I thought that MethodWrappers in
general might be of interest to some of us.

I almost forgot:

WARNING! Incorrectly using the MethodWrappers port may result in
an inconsistent image that can't be trusted anymore. Therefore,
before experimenting with the MethodWrappers port, please save
and backup your image.

Best,

"PS:" Thanks to Dan for helping with the class format tweak
(MwMethodWrapper>>tweakClassFormat) to make subclassing
of CompiledMethod work.