#aSelector do {
aSelector: Output write "I did it";
}
This works with arguments too:
#addStuff with 10 20 do {
addStuff Arg1 Arg2: Output write (Arg1 + Arg2 string);
}
#addStuff with 10 20 actually forms a new invocation object that can be applied to another object using do.
By the way, this is similar to the new preferred way of making a choice based on a boolean (if-then-else):
MyBoolean do {
true: Output write "doing one thing";^
false: Output write "doing another";
}