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


Groups > comp.lang.forth > #11668

Re: Status of OO in Forth?

Date 2012-04-26 14:20 -1000
From "Elizabeth D. Rather" <erather@forth.com>
Organization FORTH, Inc.
Newsgroups comp.lang.forth
Subject Re: Status of OO in Forth?
References (7 earlier) <4f97f0e5$0$287$14726298@news.sunsite.dk> <2012Apr25.171635@mips.complang.tuwien.ac.at> <4f981dc0$0$285$14726298@news.sunsite.dk> <2012Apr26.182610@mips.complang.tuwien.ac.at> <cb5386aa-d5ba-4e23-954a-732a3201a208@s7g2000yqm.googlegroups.com>
Message-ID <QomdnVFCMtbNewTSnZ2dnUVZ_q-dnZ2d@supernews.com> (permalink)

Show all headers | View raw


On 4/26/12 10:09 AM, Mark Wills wrote:
> On Apr 26, 5:26 pm, an...@mips.complang.tuwien.ac.at (Anton Ertl)
> wrote:
>> Doug Hoffman<glide...@gmail.com>  writes:
>>> On 4/25/12 11:16 AM, Anton Ertl wrote:
>>
>>>> What is "ivar name encapsulation",
>> ...
>>> An ivar's name is (should be) only visible to a method or class
>>> definition.
>>
>> And why is it important that this is implemented without wordlists?
>> Wordlists and the search order are Forth's feature for controlling
>> visibility.  Why would you not use them for that purpose?
>>
>> - 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/
>
> No particular reason, other than it seems a bit hacky. I have a book
> on Object Oriented Forth. It's an excellent book and walks the reader
> through implementing an OO system from scratch in high-level Forth. It
> uses wordlists/vocabularies extensively. The machinations required to
> manipulate the dictionary start to get a little messy, in opinion.
>
> I'll see if I can find the book. Everything is packed away at the
> moment.

Not sure why it seems "hacky" to you. I agree with Anton, this is a 
great example of what wordlists are good for. I have not read that book, 
but have not found the implementation of SWOOP (the OOP in SwiftForth) 
to be particularly messy.

Cheers,
Elizabeth

-- 
==================================================
Elizabeth D. Rather   (US & Canada)   800-55-FORTH
FORTH Inc.                         +1 310.999.6784
5959 West Century Blvd. Suite 700
Los Angeles, CA 90045
http://www.forth.com

"Forth-based products and Services for real-time
applications since 1973."
==================================================

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


Thread

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? Doug Hoffman <glidedog@gmail.com> - 2012-04-25 08:41 -0400
          Re: Status of OO in Forth? Andrew Haley <andrew29@littlepinkcloud.invalid> - 2012-04-25 07:52 -0500
            Re: Status of OO in Forth? Doug Hoffman <glidedog@gmail.com> - 2012-04-25 09:47 -0400
              Re: Status of OO in Forth? Andrew Haley <andrew29@littlepinkcloud.invalid> - 2012-04-25 10:37 -0500
                Re: Status of OO in Forth? Doug Hoffman <glidedog@gmail.com> - 2012-04-25 12:18 -0400
                Re: Status of OO in Forth? Andrew Haley <andrew29@littlepinkcloud.invalid> - 2012-04-25 11:39 -0500
          Re: Status of OO in Forth? anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2012-04-25 15:16 +0000
            Re: Status of OO in Forth? Paul Rubin <no.email@nospam.invalid> - 2012-04-25 08:33 -0700
            Re: Status of OO in Forth? Doug Hoffman <glidedog@gmail.com> - 2012-04-25 11:52 -0400
              Re: Status of OO in Forth? anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2012-04-26 16:26 +0000
                Re: Status of OO in Forth? Mark Wills <markrobertwills@yahoo.co.uk> - 2012-04-26 13:09 -0700
                Re: Status of OO in Forth? "Elizabeth D. Rather" <erather@forth.com> - 2012-04-26 14:20 -1000
                Re: Status of OO in Forth? anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2012-04-27 09:21 +0000
                Re: Status of OO in Forth? Doug Hoffman <glidedog@gmail.com> - 2012-04-26 21:42 -0400
    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