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 5 of 8 Topic 818 of 930
Post > Topic >>

Re: generics with multiple constraints

by Gerald Hammer <Gerald.Hammer@[EMAIL PROTECTED] > Sep 1, 2006 at 09:50 PM

none wrote:

> Gerald Hammer wrote:
>> Bernd Schoeller wrote:
>> 
>> 
>>>On Fri, 01 Sep 2006 00:00:17 +0200, Felix Breuer <felix@[EMAIL PROTECTED]
>
>>>wrote:
>>>
>>>>suppose I want to create a generic class
>>>>
>>>>  A [B -> COMPARABLE  & HASHABLE]
>>>>
[...]
>> 
>>>This is currently not possible and also conceptually not as easy as it
>>>seems: what is the static type of a variable declared 'b : B'? What are
>>>the features that can be called on it?
>>>
>> 
>> 
>> But the ECMA Standard allows constraint lists:
>> 
>>   A[B -> {C,D ...}]
>> 
>> where C,D ... are Types. And I suppose new compilers will sup****t
>> this construct.
>> 
> 
> I didn't know that the ECMA Standard authorized this kind of expression.
> In this case, how does B behave in front of feature collision between C
> and D ?

For example: A[B -> {C rename f as g, D rename f as h}]

-- 
Gerald Hammer
 




 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 Fri Jul 25 16:49:22 CDT 2008.