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


Groups > comp.lang.forth > #134252

Re: Examples for gforth's objects.fs

From Gerry Jackson <do-not-use@swldwa.uk>
Newsgroups comp.lang.forth
Subject Re: Examples for gforth's objects.fs
Date 2025-10-05 11:54 +0100
Organization A noiseless patient Spider
Message-ID <10btipp$39vs8$1@dont-email.me> (permalink)
References <877bxcm4eb.fsf@news.teletyp.ist> <2025Oct3.231505@mips.complang.tuwien.ac.at> <10bqkg4$2bksr$1@dont-email.me> <2025Oct4.185351@mips.complang.tuwien.ac.at>

Show all headers | View raw


On 04/10/2025 17:53, Anton Ertl wrote:
> Gerry Jackson <do-not-use@swldwa.uk> writes:
>> I would suggest that you start with mini-oof & xmini_oof to see how they
>> can be used as these are much simpler than Anton's object.fs which is a
>> more complete OO system. Once you see how mini_oof can be used in LexGen
>> and/or Krishna's epr-sim.4th you can move on to object.fs.
> 
> But given that so many people found mini-oof good enough to work with
> it, or to base their own extension on it, maybe the "more complete"
> part of object.fs as actually not needed that often.
> 
> One thing that Bernd Paysan found missing in mini-oof is THIS, i.e., a
> handle for the current object.  He added it into (the Gforth-specific)
> mini-oof2.  Interestingly, mini-oof is based on the internal OO system
> of Gray <https://www.complang.tuwien.ac.at/forth/gray.zip>, but that
> system has a THIS.  So the removal of THIS in mini-oof probably was
> one simplification too far.
> 
> - anton

I agree about THIS, if I'd thought of it I would probably have added it. 
Also if mini-oof2 had been available at the time I would have used that.

I suppose mini-oof is a good example of the Forth philosophy: a few 
lines of code giving the basics of OO yet powerful, easily extendable to 
add more features, easy to understand (and abuse if you need to!). And 
like Forth itself a careless mistake can easily crash the system.

-- 
Gerry

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


Thread

Examples for gforth's objects.fs okflo@teletyp.ist - 2025-10-03 16:44 +0200
  Re: Examples for gforth's objects.fs Hans Bezemer <the.beez.speaks@gmail.com> - 2025-10-03 17:11 +0200
  Re: Examples for gforth's objects.fs anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2025-10-03 21:15 +0000
    Re: Examples for gforth's objects.fs Gerry Jackson <do-not-use@swldwa.uk> - 2025-10-04 09:05 +0100
      Re: Examples for gforth's objects.fs anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2025-10-04 16:53 +0000
        Re: Examples for gforth's objects.fs Krishna Myneni <krishna.myneni@ccreweb.org> - 2025-10-04 17:04 -0500
          Re: Examples for gforth's objects.fs Krishna Myneni <krishna.myneni@ccreweb.org> - 2025-10-04 20:11 -0500
          Re: Examples for gforth's objects.fs anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2025-10-05 11:19 +0000
            Re: Examples for gforth's objects.fs albert@spenarnc.xs4all.nl - 2025-10-06 10:46 +0200
        Re: Examples for gforth's objects.fs Gerry Jackson <do-not-use@swldwa.uk> - 2025-10-05 11:54 +0100
          Re: Examples for gforth's objects.fs anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2025-10-05 11:56 +0000
          Re: Examples for gforth's objects.fs Hans Bezemer <the.beez.speaks@gmail.com> - 2025-10-05 14:31 +0200
  Re: Examples for gforth's objects.fs Krishna Myneni <krishna.myneni@ccreweb.org> - 2025-10-03 20:21 -0500
  Re: Examples for gforth's objects.fs albert@spenarnc.xs4all.nl - 2025-10-04 15:07 +0200

csiph-web