Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!rutgers!cmcl2!acf5!sabbagh From: sabbagh@acf5.NYU.EDU (sabbagh) Newsgroups: comp.lang.smalltalk Subject: Re: Smalltalk Implementation Summary Message-ID: <954@acf5.NYU.EDU> Date: 8 Dec 89 16:46:10 GMT References: <1989Dec6.235311.12726@comp.vuw.ac.nz> Reply-To: sabbagh@acf5.UUCP () Organization: New York University Lines: 27 In article <1989Dec6.235311.12726@comp.vuw.ac.nz> kjx@comp.vuw.ac.nz (R James Noble) writes: > >I have received several responses to my posting regarding Smalltalk >implementation. Thanks to all who replied. The general consensus was >as follows:- > [stuff deleted] >b) Blocks should be fully reentrant, and allow block temporaries. >Syntax: [ :a1 :a2 | t1 t2 | ... ] Also, blocks must carry around the environment in which they are defined. Consider aMethod: arg ^[ : aBlockArg | aBlockArg foo: arg]. which is entirely legal in Smalltalk. Blocks may also refer to temporary variables delcared in the method. Hadil G. Sabbagh E-mail: sabbagh@csd27.nyu.edu Voice: (212) 998-3125 Snail: Courant Institute of Math. Sci. 251 Mercer St. New York,NY 10012 186,282 miles per second -- it's not just a good idea, it's the law!