Actually, Shelagh was refering to the vertical bar "|" character. Its position depends on your keyboard layout. For example, on a German keyboard it is accessed by pressing "option" (on a PC that's "AltGr") together with "<".
- Bert -
Am 26.03.2004 um 14:19 schrieb John Voiklis:
You guessed correct, Shelagh; it is in fact the underscore keystroke. Another operator for this requires combining a colon and equal sign, like so...
:=
Usage looks like...
| myBook | myBook := BookMorph new. myBook openInWorld.
It adds one keystroke to the operation, but may be more intelligable to non-squeakers.
Best,
John
On Fri, 26 Mar 2004, Shelagh Manton wrote:
In the various books on Squeak and Smalltalk that I've read, they use a vertical stroke to delineate variables. where is this on my keyboard? Is it a character that changes in Squeak when you type it like the underscore?
Shelagh (who has decided that even if my son does not want to use squeak I do )