[Webteam] Suggestion for Squeak Website: Syntax on a Postcard
frank.ewert at web.de
Fri Oct 17 16:08:52 UTC 2008
the following link does not work anymore. Please fix it.
1.) Go to: http://www.squeak.org/Documentation/
2.) Click: Smalltalk Syntax on a Postcard
4.) Should be something like the folowing or attachment
(There are littele differences between!)
"A method that illustrates every part of Smalltalk method syntax
except primitives. It has unary, binary, and key word messages,
declares arguments and temporaries (but not block temporaries),
accesses a global variable (but not an instance variable),
uses literals (array, character, symbol, string, integer, float),
uses the pseudo variable true false, nil, self, and super,
and has sequence, assignment, return and cascade. It has both zero
argument and one argument blocks. It doesn’t do anything useful, though"
true & false not & (nil isNil) ifFalse: [self halt].
y := self size + super size.
#($a #a 'a' 1 1.0)
do: [:each | Transcript
show: (each class name);
show: (each printString);
show: ' '].
^ x < y
Frank Ewert mailto:frank.ewert at web.de
It is better to be roughly right than to be precisely wrong. [J.M.Keynes]
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Smalltalk - Syntax on a Postcard.png
Size: 153201 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/webteam/attachments/20081017/85e08761/Smalltalk-SyntaxonaPostcard-0001.png
More information about the Webteam