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


Groups > comp.lang.forth > #11609

Re: Status of OO in Forth?

From Andrew Haley <andrew29@littlepinkcloud.invalid>
Subject Re: Status of OO in Forth?
Newsgroups comp.lang.forth
References (3 earlier) <4f96a2c4$0$286$14726298@news.sunsite.dk> <ef2dnZfYKoSAIwvSnZ2dnUVZ_qidnZ2d@supernews.com> <4f96bf85$0$288$14726298@news.sunsite.dk> <-tSdnetfj-jYRQvSnZ2dnUVZ_rKdnZ2d@supernews.com> <4f97f0e5$0$287$14726298@news.sunsite.dk>
Message-ID <ZpOdnazwob04bgrSnZ2dnUVZ_rOdnZ2d@supernews.com> (permalink)
Date 2012-04-25 07:52 -0500

Show all headers | View raw


Doug Hoffman <glidedog@gmail.com> wrote:
> On 4/24/12 12:43 PM, Andrew Haley wrote:
>> Doug Hoffman<glidedog@gmail.com>  wrote:
>>> On 4/24/12 10:52 AM, Andrew Haley wrote:
>>>> Doug Hoffman<glidedog@gmail.com>   wrote:
> 
>>>>> Actually, it's pretty easy to write an objects extension that uses no
>>>>> vocabularies (wordlists) at all, anywhere, if you think using
>>>>> vocabularies is 'hacky'.  It's straightforward if you are willing to
>>>>> accept a message-object ordering.
>>>>
>>>> Why does it require a message-object ordering?  There's no need for
>>>> compile-time parsing: all a system has to do is find a handler for the
>>>> method and jump to that handler.
>>>
>>> It's just one way to do it, not a requirement.  Now you have
>>> mentioned another way sans wordlists.  Do you have a link for such
>>> an extension?
>>
>> No.  I'm still thinking.  Will write it up if I get time.
> 
> Sorry, I didn't mean for you to write up something special.  A simple 
> explanation of how your technique handles instance variable name 
> encapsulation is all I was interested in.

Oh, that's easy.  Object contains a pointer to a table, mesage looks
in that table to find a handler for the message's selector and jumps
to the handler.

> That was the context of this part of the thread.  (Not to disparage
> Mini-OOF, because it is a very clever piece of code, but ivar name
> encapsulation in Mini-OOF is seriously broken, IMO.)

Interesting.  I'll have to have a look to see what the problem is.

Andrew.

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