home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.mac.hypercard
- Path: sparky!uunet!cs.utexas.edu!asuvax!ennews!gtephx!patfieldk
- From: patfieldk@gtephx.UUCP (Kevin M. Patfield)
- Subject: Re: Message-passing question
- Message-ID: <1992Sep11.233513.15823@gtephx.UUCP>
- Organization: AG Communication Systems, Phoenix, AZ
- References: <gefDdzC00VokMNhUpJ@andrew.cmu.edu> <1992Sep9.213735.12782@leland.Stanford.EDU>
- Date: Fri, 11 Sep 1992 23:35:13 GMT
- Lines: 29
-
- In article <1992Sep9.213735.12782@leland.Stanford.EDU> brod@jessica.stanford.edu (Brodie Lockard) writes:
- >
- >With functions, you'll run into the above problem. Try using regular handlers
- >and returning values via globals:
-
- It's not really obvious from anything I've read but "regular handlers" can
- return values just fine. [My personal crusade is to write stacks without
- using globals whenever humanly possible.]
-
- on foo
- ...
- ...
- ...
- return "bar"
- end foo
-
-
- on test
- foo
- get the result
- if it is "bar"
- then ...
- else ...
- end test
- --
- Kevin Patfield, AG Communication Systems, Phoenix, AZ
- UUCP: {ncar!noao!enuucp | uunet!zardoz!hrc | att}!gtephx!patfieldk
- Internet: gtephx!patfieldk@enuucp.eas.asu.edu
- AOL: Patfield
-