🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.eiffel
Article #1643

Re: Repeated Inheritance Ambiguity: some thoughts

#1643
From: Jacob Gore
Date: Sun, 11 Mar 1990 19:27
29 lines
1108 bytes
/ comp.lang.eiffel / db@lfcs.ed.ac.uk (Dave Berry) / Mar 11, 1990 /

> 			class A
> 			  feature f, g
> 	
> 	class P1			class P2
> 	  inherit A			  inherit P2
> 	    rename f as p1_f		    rename f as p2_f
> 	    rename g as p1_g		    rename g as p2_g

> 3. In the definition of the class.  This avoids the syntax above, but
>    has the disadvantage that the choice is fixed for all uses.
> 
>    A possible syntax for the third approach is:
> 
>    		priority p1_f, p2_g;

Doesn't

			class D
			  inherit P1, P2
			    rename p1_f as f
			    rename p2_g as g

do what you want?

Jacob
--
Jacob Gore		Jacob@Gore.Com			boulder!gore!jacob
Technical Details
Message-ID: <120016@gore.com>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!usc!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!ames!ncar!boulder!gore!jacob
References: <2764@castle.ed.ac.uk>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!usc!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!ames!ncar!boulder!gore!jacob
From: jacob@gore.com (Jacob Gore)
Newsgroups: comp.lang.eiffel
Subject: Re: Repeated Inheritance Ambiguity: some thoughts
Message-ID: <120016@gore.com>
Date: 11 Mar 90 19:27:44 GMT
References: <2764@castle.ed.ac.uk>
Reply-To: jacob@gore.com (Jacob Gore)
Organization: Gore Enterprises
Lines: 29