<?xml version="1.0" encoding="iso-8859-1"?><rss version="2.0" xmlns="http://purl.org/rss/1.0/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Smalltalk Syntax on a Postcard</title><link>http://esug.heeg.de/whyusesmalltalktoteachoop/smalltalksyntaxonapostcard/</link><description>Recent Changes to Smalltalk Syntax on a Postcard</description><generator>SmallWiki 1.0</generator><copyright>Software Composition Group, University of Berne, 2003</copyright><item><title>Smalltalk Syntax on a Postcard</title><link>http://esug.heeg.de/whyusesmalltalktoteachoop/smalltalksyntaxonapostcard/</link><pubDate>Sat, 04 Feb 2006 16:59:34 GMT</pubDate><description>February 4, 2006 16:59:34.322 by admin from 81.173.170.106</description><content:encoded><![CDATA[<h1>Smalltalk Syntax on a Postcard</h1><p><div class="nav"><a href="/whyusesmalltalktoteachoop/smalltalkobjectmodel/"><<</a>&nbsp;<a href="/whyusesmalltalktoteachoop/">^</a>&nbsp;<a href="/whyusesmalltalktoteachoop/onelookuplookintheclassofthereceiver/">>></a></div><p>&nbsp;</p></p><p><div id="code"></p><p><pre></p><p><b>exampleWithNumber:</b> <i>x</i></p><p>"A method that illustrates every part of Smalltalk method syntax</p><p>except primitives. It has unary, binary, and keyword messages,</p><p>declares arguments and temporaries, accesses a global variable</p><p>(but not and instance variable), uses literals (array, character,</p><p>symbol, string, integer, float), uses the pseudo variables</p><p>true false, nil, self, and super, and has sequence, assignment,</p><p>return and cascade. It has both zero argument and one argument blocks."	</p><p>    |y|</p><p>    true & false not & (nil isNil) ifFalse: [self halt].</p><p>    y := self size + super size.</p><p>    #($a #a "a" 1 1.0)</p><p>        do: [:each | Transcript show: (each class name);</p><p>                                 show: ' '].</p><p>    ^ x < y </p><p><pre></p><p></div></p>]]></content:encoded></item></channel></rss>