[Object] do | Manual

[Object] do

Activates 'chain mode'. If chain mode is active, all messages will return the recipient object regardless of their return signature.

 a := Array < 'hello' ; 'world' ; True ; Nil ; 666.
 a do pop shift unshift: 'hi', push: 999, done.

 Because of 'chain mode' you can do 'a do pop shift' etc, instead of

 a pop.
 a shift.

 The 'do' message tells the object to always return itself and disgard
 the original return value until the message 'done' has been received.

back to homepage
back to manual menu

This API reference guide has been generated automatically from source code comments using the shtml.ctr script.