Re: Are Logtalk objects "real" objects?...



On Tue, 8 Apr 2008 07:17:24 -0700 (PDT), Paulo Moura
<pjlmoura@xxxxxxxxx> wrote:

On Apr 8, 1:56 pm, A.L. <alewa...@xxxxxxxxxx> wrote:
On Tue, 8 Apr 2008 01:56:38 -0700 (PDT), Paulo Moura

<pjlmo...@xxxxxxxxx> wrote:
Nevertheless, If you really want to use Prolog modules as Logtalk
objects,

No. AI don't want to use modules as objects. As I said, objects and
modules are different things.

In the context of Prolog, both modules and (Logtalk) objects share the
property of encapsulating predicates. This, of course, does not imply
that they are the same concept in disguise. Crossing to other
programming languages, one easily finds many variations (and
materializations) of both concepts.

See Clemens Szyperski paper

Import is not inheritance - Why we need both: modules and classes

from here

http://research.microsoft.com/users/cszypers/pub/

The link to the paper is broken. Maybe you can describe the basic
ideas with your own words, preferably in the context of Prolog?


Check here


http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.53.2290

A.L.
.



Relevant Pages

  • Re: discovering predicate name
    ... > with gprolog to make a little and basic expert system. ... > if there's anyway I can check these predicates in order to taylor the ... context of facts by asking the user various questions. ... In Prolog, you don't have to go rummaging around in referenece ...
    (comp.lang.prolog)
  • Re: Lost in translation
    ... Outside of that context, it is a functor like any other. ... Is this not typical prolog style, ... it seems like my prolog-in-lisp translation indeed did not lose any semantics in the translation. ...
    (comp.lang.lisp)
  • Re: Are Logtalk objects "real" objects?...
    ... In the context of Prolog, both modules and objects share the ... property of encapsulating predicates. ... programming languages, one easily finds many variations (and ...
    (comp.lang.prolog)
  • Re: CSS question - inheriting other classes (I think)
    ... A response may look coherent and useful but be useless, since the suggested solutions just don't work in the context. ... speculate on "inheriting other classes". ... exception, when someone asks about inheritance in CSS, the question ... If I were immature and wrote nonsense, I surely would not take such an advice. ...
    (alt.html)
  • Re: refering to base classes
    ... considered - though its only recently ive started playing with multiple ... inheritance in any context - thanks for that ...
    (comp.lang.python)