I've already seen those links you mentioned, but I'm still confused. How do
I define a constructor that will chain-call the constructors for the parent
classes? I want to define a class that is derived from symtab
(www.rosycrew.org/symtab.factor) and which adds some new slots. The
constructor for this new class shouldn't have to concern itself with (or
even know about) the symtab slots: count, left and rite. In C++ these would
be private, as they are low-level details that the user of the class (the
programmer of the derived class) doesn't need to know about. How do I
override the member functions of the parent class? My symtab program used
TUPLE, but it wasn't OOP at all because the functions that dealt with the
tuple weren't member functions of that tuple; they were just external
functions. My symtab was like a C program except that it used the
computer-sciency term "tuple" rather than "struct." I'm still not getting
how OOP works in Factor.


> Message: 3
> Date: Sat, 9 May 2009 19:51:17 +0200
> From: zimbatm <[email protected]>
> Subject: Re: [Factor-talk] OOP tutorial
> To: [email protected]
> Message-ID:
> <[email protected]>
> Content-Type: text/plain; charset=UTF-8
>
> Basically, a class is defined with a TUPLE. Some examples :
> http://docs.factorcode.org/content/article-tuple-examples.html
>
> For a more general description, see:
> http://docs.factorcode.org/content/article-objects.html
>
> The doc is generally well constructed. The idea is to put as much
> informations in the factor documentation system so it doesn't get out
> of sync. Contributors also accept comments and patches if you feel for
> it.
>
> Regarding CLOS, I've read somewhere Slava saying it heavily influenced
> factor but I don't know much about it.
>
> Cheers,
>   zimbatm


------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables 
unlimited royalty-free distribution of the report engine 
for externally facing server and web deployment. 
http://p.sf.net/sfu/businessobjects
_______________________________________________
Factor-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/factor-talk

Reply via email to