Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.forth > #11091

Re: Status of OO in Forth?

From anton@mips.complang.tuwien.ac.at (Anton Ertl)
Newsgroups comp.lang.forth
Subject Re: Status of OO in Forth?
Date 2012-04-10 08:22 +0000
Organization Institut fuer Computersprachen, Technische Universitaet Wien
Message-ID <2012Apr10.102234@mips.complang.tuwien.ac.at> (permalink)
References (1 earlier) <2012Apr8.182913@mips.complang.tuwien.ac.at> <5ba20241-6aad-4fd8-a14c-3242bafaf475@f27g2000yqc.googlegroups.com> <2012Apr9.112638@mips.complang.tuwien.ac.at> <4f82d153$0$292$14726298@news.sunsite.dk> <3f4e8cf1-0164-4053-b5bb-40acd51f0d41@a5g2000vbl.googlegroups.com>

Show all headers | View raw


Mark Wills <markrobertwills@yahoo.co.uk> writes:
>I'd be interested to know (in both FMS and objects.fs) how (for
>example) methods that belong to one class are prevented from being
>visible to another (unrelated) class.

For objects.fs, they aren't.  This is Forth.  It's the programmer's
responsibility to use the right words with the right things being on
the stack.

For FMS, I guess they are not, either.  First, this is Forth; see
above.  Second, it meets Smalltalk (the S in FMS).  A feature of
Smalltalk that Doug Hoffman very much likes is that you can send any
message to any object of any class; two classes might understand a
message even if none of their common ancestors are able to understand
it.  This is the basis for duck typing.

- anton
-- 
M. Anton Ertl  http://www.complang.tuwien.ac.at/anton/home.html
comp.lang.forth FAQs: http://www.complang.tuwien.ac.at/forth/faq/toc.html
     New standard: http://www.forth200x.org/forth200x.html
   EuroForth 2011: http://www.euroforth.org/ef11/

Back to comp.lang.forth | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Status of OO in Forth? "A. K." <akk@nospam.org> - 2012-04-07 14:27 +0200
  Re: Status of OO in Forth? anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2012-04-08 16:29 +0000
    Re: Status of OO in Forth? Mark Wills <markrobertwills@yahoo.co.uk> - 2012-04-08 12:17 -0700
      Re: Status of OO in Forth? anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2012-04-09 09:26 +0000
        Re: Status of OO in Forth? Doug Hoffman <glidedog@gmail.com> - 2012-04-09 08:08 -0400
          Re: Status of OO in Forth? Mark Wills <markrobertwills@yahoo.co.uk> - 2012-04-09 05:58 -0700
            Re: Status of OO in Forth? Doug Hoffman <glidedog@gmail.com> - 2012-04-09 15:01 -0400
            Re: Status of OO in Forth? anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2012-04-10 08:22 +0000
              Re: Status of OO in Forth? Doug Hoffman <glidedog@gmail.com> - 2012-04-10 08:00 -0400
                Re: Status of OO in Forth? Doug Hoffman <glidedog@gmail.com> - 2012-04-10 08:35 -0400
                Re: Status of OO in Forth? "David N. Williams" <williams@umich.edu> - 2012-04-10 08:42 -0400
      Re: Status of OO in Forth? Doug Hoffman <glidedog@gmail.com> - 2012-04-24 08:55 -0400
        Re: Status of OO in Forth? Andrew Haley <andrew29@littlepinkcloud.invalid> - 2012-04-24 09:52 -0500
          Re: Status of OO in Forth? Doug Hoffman <glidedog@gmail.com> - 2012-04-24 10:58 -0400
            Re: Status of OO in Forth? Andrew Haley <andrew29@littlepinkcloud.invalid> - 2012-04-24 11:43 -0500
          Re: Status of OO in Forth? anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2012-04-24 16:47 +0000
            Re: Status of OO in Forth? Andrew Haley <andrew29@littlepinkcloud.invalid> - 2012-04-24 12:02 -0500

csiph-web