Newsgroups: comp.lang.smalltalk
Path: cantaloupe.srv.cs.cmu.edu!rochester!udel!gatech!concert!mercury!dowtin
From: dowtin@mercury.ncat.edu
Subject: Syntax Question...
Message-ID: <1995Apr28.004913.28986@mercury.ncat.edu>
Organization: North Carolina Agricultural and Technical State University
Date: Fri, 28 Apr 1995 00:49:13 GMT
Lines: 31

-Language: IBM Smalltalk v2

I'm a relative newbie, and would like to know a little more about the
following syntactical blunder:


| temp |

temp := Dictionary new;
  at: 'key' put: 'element'.


--end of blunder
-- the previous bit of code is incorrect - (the debugger told me so) could
someone explain why? More specifically - the ';' notation

conversely:

 | temp | 
temp := Dictionary new.
temp at: 'key' put: 'element'.


- works just fine.

Thanks,
Brian
-- 
 *        o     o o o o                                                    *
 *         o  o         o                      Brian K. Dowtin             *
 *       o      o o o o                        email: dowtin@jade.ncat.edu *
