Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Eiffel > "Multiple confo...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 9 Topic 843 of 909
Post > Topic >>

"Multiple conformance"?

by "Colin LeMahieu" <clemahieu@[EMAIL PROTECTED] > Dec 29, 2006 at 05:47 PM

I know it is possible to ensure object conformance or handle an object
with an abstract reference such as a generic with [G -> BOUNDED] or in
a feature a(data: BOUNDED but is there a way to ensure multiple
conformance or handle an object by multiple abstract references such as
[G -> BOUNDED, INDEXABLE] or a(data: BOUNDED INDEXABLE) such that G
conforms to both BOUNDED and INDEXABLE and 'data' inherits both BOUNDED
and INDEXABLE?

I guess you could do a runtime assignment of 'data' with ?= but I'm
wondering if there's a more elegant solution than creating a deferred
class that inherits both BOUNDED and INDEXABLE and then making sure the
class inherits from that class.

Is this possible?  Is this possible in any language that uses multiple
inheritance of classes or interfaces without using dynamic typing?




 9 Posts in Topic:
"Multiple conformance"?
"Colin LeMahieu"  2006-12-29 17:47:43 
Re: "Multiple conformance"?
"llothar" <l  2006-12-30 02:20:08 
Re: "Multiple conformance"?
Gerald Hammer <Gerald.  2006-12-31 11:40:15 
Re: "Multiple conformance"?
"Colin LeMahieu"  2006-12-30 19:07:03 
Re: "Multiple conformance"?
Gerald Hammer <Gerald.  2006-12-31 11:45:13 
Re: "Multiple conformance"?
"llothar" <l  2007-01-01 04:10:19 
Re: "Multiple conformance"?
Georg Bauhaus <bauhaus  2007-01-02 10:48:05 
Re: "Multiple conformance"?
"Colin LeMahieu"  2007-01-02 11:24:52 
Re: "Multiple conformance"?
"Emmanuel Stapf [ES]  2007-01-02 14:41:49 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sun May 11 17:49:58 CDT 2008.