Talk About Network

Google


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 > Re: generics wi...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 8 of 8 Topic 818 of 930
Post > Topic >>

Re: generics with multiple constraints

by "Bernd Schoeller" <google_my@[EMAIL PROTECTED] > Sep 1, 2006 at 08:23 PM

On Fri, 01 Sep 2006 11:00:06 +0200, Damian D. <qoocku@[EMAIL PROTECTED]
> wrote:

> I do no know the ISE Eiffel class library but I suggest to create a
> class X inheriting COMPARABLE and HASHABLE and use A [B->X]

This only solves part of the problem. Normally you already have cl*****  
that inherit from COMPARABLE and HASHABLE in some library. You want to  
provide functionality that is relying on these two aspects (for example by
 
creating some kind of sorted list using hashtables).

Then you want - for example - to put INTEGERs into that list. While  
INTEGER inherits from HASHABLE and COMPARABLE, there is no common  
superclass that abstracts exactly that combination. And it is difficult to
 
"squeeze" that into the kernel library.

Bernd

-- 
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
 




 8 Posts in Topic:
generics with multiple constraints
"Felix Breuer"   2006-08-31 15:00:17 
Re: generics with multiple constraints
"Bernd Schoeller&quo  2006-09-01 04:17:02 
Re: generics with multiple constraints
Gerald Hammer <Gerald.  2006-09-01 10:40:15 
Re: generics with multiple constraints
"@[EMAIL PROTECTED]   2006-09-01 18:55:40 
Re: generics with multiple constraints
Gerald Hammer <Gerald.  2006-09-01 21:50:34 
Re: generics with multiple constraints
"Damian D." <  2006-09-01 02:00:06 
Re: generics with multiple constraints
Gerald Hammer <Gerald.  2006-09-01 11:14:47 
Re: generics with multiple constraints
"Bernd Schoeller&quo  2006-09-01 20:23:01 

Post A Reply:
  Go here to Signup

AddThis Feed Button


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

Contact
tan12V112 Sat Jul 26 4:01:57 CDT 2008.