Re: Prolog module system
- From: A.L. <fela@xxxxxxxx>
- Date: Wed, 13 Jun 2007 08:21:03 -0500
On Wed, 13 Jun 2007 06:05:44 -0700, Paulo Moura <pjlmoura@xxxxxxxxx>
wrote:
[...]
There are two major types of OO systems: class-based ones and
prototype-based ones. You start your sentence by talking about objects
(apparently in a broad sense) and end it with a reference to classes.
Prototypes can fulfill the role of modules. That's way Logtalk
supports both prototypes and classes. Prototypes are a much better
plug-in replacement for Prolog modules than classes. Logtalk also
supports categories (think components, aspects) that provide you with
importing semantics. *Classes* are not the only structuring form in
Logtalk.
There is a book about prototypes: "Object Oriented Programming with
Prototypes" by Guenther Blashek, Springer Verlag 1994 vere the author
shows that conceptually prototypes are not diffrent than classes.
A.L.
P.S. By the way, there is also third OO model: types extension. It is
used in Oberon and Ada.
.
- Follow-Ups:
- Re: Prolog module system
- From: Cesar Rabak
- Re: Prolog module system
- From: Paulo Moura
- Re: Prolog module system
- References:
- Re: Prolog module system
- From: Paulo Moura
- Re: Prolog module system
- From: bart demoen
- Re: Prolog module system
- From: Paulo Moura
- Re: Prolog module system
- From: bart demoen
- Re: Prolog module system
- From: Paulo Moura
- Re: Prolog module system
- From: A . L .
- Re: Prolog module system
- From: Paulo Moura
- Re: Prolog module system
- From: A . L .
- Re: Prolog module system
- From: Paulo Moura
- Re: Prolog module system
- Prev by Date: Re: Prolog module system
- Next by Date: Re: Prolog module system
- Previous by thread: Re: Prolog module system
- Next by thread: Re: Prolog module system
- Index(es):
Relevant Pages
|
|