🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.misc
Article #3374

Re: CHALLENGE: heterogeneous collections

#3374
From: Eric C. Olson
Date: Thu, 04 Apr 1991 14:56
32 lines
1987 bytes
In the article Richard Bielak writes:
>   The generic collection should really be declared as:
>
>	   h_collection: COLLECTION [ANY];
>
>   as any class in Eiffel is an heir of ANY.

I read an interesting paper that included a discussion of
heterogeneous objects in an object-oriented database.

The basic idea was to resolve the class heirarchy as late as
possible, but during query semantic checking.  That is, given
a heterogeneous set of objects to work on, is it legal to
apply a particular method on all of the objects?

The set of classes (and superclasses) that define the objects are
inspected.  For each class, the method is resolved (in it or its
superclasses).  If this method exist in each of the classes,
and has the same arity and type, then the query is semantically valid.

To me, this seems to be a runtime class definition.  For this task,
you are defining a runtime superclass with a single method.  The
generalization would be, given any set of objects, define the
runtime superclass which is the intersection of each object's methods
(based on arity and type).  This is guaranteed to at least be the
root class.

Hmmm,
Eric
--
Eric
ericco@ssl.berkeley.edu
Technical Details
Message-ID: <ERICCO.91Apr4095619@sdaf1.ssl.berkeley.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!bu.edu!snorkelwacker.mit.edu!stanford.edu!agate!sunspot.berkeley.edu!ericco
References: <1991Mar25.220525.11087@leland.Stanford.EDU> <CIMSHOP!DAVIDM.91Mar28192651@uunet.UU.NET> <521@eiffel.UUCP> <CIMSHOP!DAVIDM.91Apr1224716@uunet.UU.NET> <1991Apr3.211414.25628@bony1.bony.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!bu.edu!snorkelwacker.mit.edu!stanford.edu!agate!sunspot.berkeley.edu!ericco
From: ericco@ssl.berkeley.edu (Eric C. Olson)
Newsgroups: comp.lang.misc,comp.object
Subject: Re: CHALLENGE: heterogeneous collections
Message-ID: <ERICCO.91Apr4095619@sdaf1.ssl.berkeley.edu>
Date: 4 Apr 91 14:56:19 GMT
References: <1991Mar25.220525.11087@leland.Stanford.EDU>
 <CIMSHOP!DAVIDM.91Mar28192651@uunet.UU.NET> <521@eiffel.UUCP>
 <CIMSHOP!DAVIDM.91Apr1224716@uunet.UU.NET>
 <1991Apr3.211414.25628@bony1.bony.com>
Sender: usenet@agate.berkeley.edu (USENET Administrator)
Distribution: comp
Organization: CEA @ UC Berkeley, Berkeley, CA, USA.
Lines: 32
In-Reply-To: richieb@bony1.bony.com's message of 3 Apr 91 21:14:14 GMT