Re: OO and relation "impedance mismatch"

From: Massimo Dentico <massimo_dentico_at_hotmail.com>
Date: Fri, 8 Oct 2004 15:39:08 +0200
Message-ID: <ck657i$stf$1_at_news.ngi.it>


"robert" <gnuoytr_at_rcn.com> wrote
in message news:da3c2186.0410071632.6043866e_at_posting.google.com...

> alfredo_at_ncs.es (Alfredo Novoa) wrote
> in message news:<41655f5b.20788843_at_news.wanadoo.es>...
>
> > On Thu, 7 Oct 2004 14:35:24 +0200, "Ja Lar" <jalar_at_nomail.com> wrote:
> >
> > > How would you represent a relation as an object?
> >
> > Something like:
> >
> > new Relation(
> > new Tuple(new Value("A", 1), new Value("B", "a")),
> > new Tuple(new Value("A", 2), new Value("B", "b")),
> > new Tuple(new Value("A", 3), new Value("B", "c"))
> > );
> >
> > > Please give an example, and clarify what is the class of such an object.
> >
> > The class would be a class that is the set of all the possible
> > relation values.
> >
> >
> > Regards
>
>
> you're describing Prolog, a particulary irritating language.

Excuse me: how Prolog is relevant in this context?

--
Massimo Dentico
Received on Fri Oct 08 2004 - 15:39:08 CEST

Original text of this message