Home Segments Index Top Previous Next

106: Sidetrip

Rather than allowing a method to fall off its end, answering self by default, you can include an equivalent, explicit answer of self by concluding the method definition with ^ self. Generally, you should include ^ self only when you wish to indicate to yourself or other programmers that you expect the answered self to be used.