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