home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / sys / mac / hypercar / 3424 < prev    next >
Encoding:
Text File  |  1992-09-13  |  1.1 KB  |  52 lines

  1. Newsgroups: comp.sys.mac.hypercard
  2. Path: sparky!uunet!gatech!cc.gatech.edu!terminus!byrne
  3. From: byrne@terminus.gatech.edu (Michael Byrne)
  4. Subject: Re: Message-passing question
  5. Message-ID: <1992Sep13.231112.21561@cc.gatech.edu>
  6. Sender: news@cc.gatech.edu
  7. Organization: College of Computing
  8. References: <gefDdzC00VokMNhUpJ@andrew.cmu.edu> <1992Sep9.213735.12782@leland.Stanford.EDU> <1992Sep11.233513.15823@gtephx.UUCP>
  9. Date: Sun, 13 Sep 1992 23:11:12 GMT
  10. Lines: 40
  11.  
  12. In article <1992Sep11.233513.15823@gtephx.UUCP> patfieldk@gtephx.UUCP (Kevin M. Patfield) writes:
  13. >on foo
  14. >  ...
  15. >  ...
  16. >  ...
  17. >  return "bar"
  18. >end foo
  19. >
  20. >
  21. >on test
  22. >  foo
  23. >  get the result
  24. >  if it is "bar"
  25. >  then ...
  26. >  else ...
  27. >end test
  28. >-- 
  29.  
  30. or, even faster:
  31.  
  32. on test
  33.   foo
  34.   if the result is "bar" then
  35.     ...
  36.   else
  37.     ...
  38.   end if
  39. end test
  40.  
  41. (My personal crusade is against the local variable "it".)
  42.  
  43.  
  44.  
  45. ============================================================
  46. Mike Byrne                               byrne@cc.gatech.edu
  47. Grad student in Psychology/Cognitive Science
  48. 25947 GA Tech Station, Atlanta, GA 30332
  49.  
  50. ----->>>>    "Only the mediocre are always at their best."
  51.                     
  52.