Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!wuarchive!uunet!munnari.oz.au!metro!cluster!swift!sunaus.oz!newstop!exodus!sbb From: sbb@laplace.eng.sun.com (Steve Byrne) Newsgroups: comp.lang.smalltalk Subject: Re: method-ology Message-ID: Date: 24 Jun 91 17:21:48 GMT References: <1387@argosy.UUCP> Sender: news@exodus.Eng.Sun.COM Distribution: comp Organization: FSF hackers, Smalltalk division Lines: 11 Another way to deal with doing "multiple value returns" is to pass in a block which accepts as parameters the values which are to be returned. Thus: foo asQr: [ :q :r | ..... ] This means that you don't *have* to store these variables away in some locals if you won't want to, you don't have to grab them out of some structured object which was returned from the method, etc. I've used this technique in various places and it's worked out quite well. Steve