Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Forth > Re: OOP-forth ?
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 3 of 3 Topic 3972 of 4065
Post > Topic >>

Re: OOP-forth ?

by anton@[EMAIL PROTECTED] (Anton Ertl) Mar 26, 2008 at 03:16 PM

problems@[EMAIL PROTECTED]
 writes:
>Some time back I looked at ficl, but it seems to be incomplete
>and married to Mac, and I need a linux system version.
>
>Then I saw this:-
>"Mini-OOF is (this is mini-oof.fs from gforth 0.6.2):
>...
>: method ( m v "name" -- m' v ) Create  over , swap cell+ swap
>...
>: class ( class -- class methods vars ) dup 2@[EMAIL PROTECTED]
 ;
>...
>: new ( class -- o )  here over @[EMAIL PROTECTED]
 allot swap over ! ;
>Create object  1 cells , 2 cells ,  ...",
>      which is using OOP-jargon.
>
>I KNOW that gforth is mature and good as I've tested ver *6*
>
>Is a version of gforth, or some other forth recommended to 
>experiment with OOP concepts?

Actually, mini-oof.fs and objects.fs are written in standard Forth,
and a standard implementation of oof.fs is available, too; there are
also standard implementations of some other object-oriented Forth
extensions; for such OO extensions, you can use them on any standard
Forth, no need to restrict yourself to Gforth.

Of course, Gforth is the Forth system I recommend anyway.

- 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 2008:
http://www.complang.tuwien.ac.at/anton/euroforth/ef08.html




 3 Posts in Topic:
OOP-forth ?
problems@[EMAIL PROTECTED  2008-03-25 21:40:20 
Re: OOP-forth ?
Elizabeth D Rather <er  2008-03-26 01:20:54 
Re: OOP-forth ?
anton@[EMAIL PROTECTED]   2008-03-26 15:16:36 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat May 17 3:24:37 CDT 2008.