Two methods:
MyClass>>myMethod
self
writeByte: 1;
writeByte: 2.
MyClass>>writeByte: aByte
socket sendByte: aByte.
If I do an 'Inline Self Sends' refactor on MyClass>>writeByte, then
MyClass>>myMethod ends up as:
MyClass>>myMethod
self
sendByte: 1;
sendByte: 2.
i.e. the receiver in a chained self send is not rewritten, although the
selector is. The safest bet would be to disable the inlining for chained
method sends; the best would be to recognise where it could actually be
done (i.e. all of the chained sends are the same selector).
-------------------------
Antony Blakey
mailto:
[hidden email]
Linkuistics Pty Ltd
Adelaide, South Australia