"Smalltalk for C programmers": Conclusions

Marcus Denker marcus at ira.uka.de
Sun Feb 13 10:41:40 UTC 2000


On Sun, Feb 13, 2000 at 09:59:57AM +0100, Marcel Weiher wrote:
> 
> Yes.  It is easy to show C programmers how Objective-C is really  
> just syntactic sugar for something they could have done in C, which  
> is probably close to things they have been doing already.
> 
> Once you're there, you just remove a little syntax, add blocks and  
> you're into Smalltalk.
> 
There is a version of Objective C with blocks: The Portable Object 
Compiler by David Stes (http://users.pandora.be/stes/). 

[aCltn do: { :each | [self remove: each];} ];

Message sends are inside square brackets [anObject doSomething], blocks 
use curly braces {that's a Block}.

A good desciption about Objective C blocks is
http://users.pandora.be/stes/block98.html

POC even has a Smalltalk2POC translator called "Producer". 
http://users.pandora.be/stes/producer.html 

  Marcus

--
Marcus Denker marcus at ira.uka.de phone at home:(0721)614235 @work:(0721)608-2749





More information about the Squeak-dev mailing list