home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / lang / forth / 2854 < prev    next >
Encoding:
Internet Message Format  |  1992-07-25  |  2.3 KB

  1. Path: sparky!uunet!munnari.oz.au!metro!socs.uts.edu.au!kralizec!mikeh
  2. From: mikeh@kralizec.zeta.org.au (Michael Hore)
  3. Newsgroups: comp.lang.forth
  4. Subject: Re: OOP Implementation Details
  5. Message-ID: <9541@kralizec.zeta.org.au>
  6. Date: 24 Jul 92 09:36:48 GMT
  7. Organization: Kralizec Dialup Unix Sydney: +61-2-837-1183 V.32
  8. Lines: 50
  9.  
  10.  
  11. Antero Taivalsaari writes:
  12.  
  13. > All the schemes work, so the difference between them is mainly 
  14. > that of readability and personal preference.
  15.  
  16. I agree completely, which is one reason I haven't come back into
  17. this discussion.  (The other is I haven't had time :-)  )
  18.  
  19. Mops can handle message paths, along the lines
  20.  
  21. msg1: obj1  msg2: []  msg3: []
  22.  
  23. Of course, if the recipient of msg2 needs parameters, they would
  24. need to be set up right at the start, or else you could do
  25.  
  26. msg1: obj1  parmx parmy rot  msg2: []  etc.
  27.  
  28. Not so nice -- clumsy even, but not at all common, IMHO.  By far
  29. the most common is the simple  msg: obj, which I find very readable.
  30. But I do agree that this is personal preference, and I have no
  31. strong objections to any of the other ideas presented here.  My
  32. priority now is to make my implementation as good as I can, and add
  33. tools, using the syntax I have already.
  34.  
  35. Bob Loewenstein asks, rhetorically:
  36.  
  37. > Is it a Forth that is object oriented in ways, or is it
  38. > a different language implemented in Forth.
  39.  
  40. My feeling about Neon/Yerk/Mops is that it is (they are?)
  41. an OOP extension of Forth.  I know Chuck Duff (the creator
  42. of Neon) described it as a new language, and I can see
  43. that point of view too.  Again it's a personal thing I guess,
  44. but since it's in the nature of Forth to be extensible, and
  45. N/Y/M supports normal Forth code with one exception, I prefer
  46. to call it a Forth.
  47.  
  48. The one exception is that words ending in colon are reserved
  49. as messages -- they can't be anything else.  I don't feel this
  50. is a strong disqualification.  I'd like to make Mops ANSI-compliant,
  51. and feel I can do it with a relatively short prologue, WITH just
  52. that one exception.  I guess then it wouldn't really be compliant,
  53. just almost so.
  54.  
  55. --  Mike.     
  56. ------------------------------------------------------------------------
  57. Mike Hore          internet:    mikeh@kralizec.zeta.org.au
  58. "Wisdom has never been known to enter the head through an open mouth"
  59. -- overheard somewhere.
  60.