Re: Object Oriented Prolog for Windows
pmoura_at_di.ubi.pt
Date: 02/20/05
- Next message: Bart Demoen: "Re: Deleting elments of a list which are in it more than once"
- Previous message: pmoura_at_di.ubi.pt: "Re: Object Oriented Prolog for Windows"
- In reply to: John Powel: "Re: Object Oriented Prolog for Windows"
- Next in thread: George SP.: "Re: Object Oriented Prolog for Windows"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 20 Feb 2005 11:19:16 -0800
John Powel wrote:
> Hi Alexei,
>
> > The problem is what do you mean under the object-orientation in
> Prolog?
>
> Well, I thougt my question was simple :-). I mean object oriented
like
> Small Talk, Java, C++ or C#.
Not so simple... SmallTalk, Java, C++, and C# are all class-based
languages. There are also other "types" of object-oriented languages
such as protype-based ones (Self, for example). Likewise, most Prolog
object-oriented extensions are either class-based or protype-based
(some, like Logtalk, support both class-based and prototype-based
designs).
It's not clear which OO features are important for you on an OO
extension to Prolog. Even if you restrict yourself to something along
the lines of the languages you cite above, there are some important
differences. For example, only Java and C++ provide (decent) separation
between interface/protocol and inheritance. Only C++ supports
implementation multi-inheritance. All this leaves the developer of an
OO extension to Prolog with a fair amout of design goals and trade-offs
to make, as reflected on the diversity of Prolog OO extensions which
are available today.
Cheers,
Paulo
- Next message: Bart Demoen: "Re: Deleting elments of a list which are in it more than once"
- Previous message: pmoura_at_di.ubi.pt: "Re: Object Oriented Prolog for Windows"
- In reply to: John Powel: "Re: Object Oriented Prolog for Windows"
- Next in thread: George SP.: "Re: Object Oriented Prolog for Windows"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|