[Webteam] Suggestion for Squeak Website: Syntax on a Postcard

Frank Ewert frank.ewert at web.de
Fri Oct 17 16:08:52 UTC 2008


Hello Webteam,

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
    (http://www.esug.org/whyusesmalltalktoteachoop/smalltalksyntaxonapostcard/)

3.) Error

4.) Should be something like the folowing or attachment
    (There are littele differences between!)




exampleWithNumber: x
"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"
        |y|
        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




-- 
Yours faithfully
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
Type: image/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 mailing list