see below:
Eric Bezault wrote:
> Helmut Brandl wrote:
>
>> Now I am a little bit astonished.
>>
>> If ECMA is going to allow is_equal ( other: like Current ): BOOLEAN, it
>> also has to revise the feature declaration rule 8.5.25, which states
>> that a feature declaration is valid if and only if any anchored type for
>> an argument is detachable.
>>
>> If this is going to happen all the stuff with catcall avoidance by
>> forbidding covariant redeclarations with attached types breaks down.
>> Remember that declaring an argument of type like Current is an implicit
>> covariant redeclaration.
>>
>
> I'd be so glad if everything related to attached/detachable types
> be removed from the standard. In my opinion it brings more problems
> than it solves and it makes the language definition much more
> complicated. And this is still a research topic, so in my opinion
> it was too early to have it in the standard. We should not put
> the car before the horses. We should implement and play with the
> mechanism first, and then put it in the standard if it really works.
> At least that's my opinion.
>
>
In my opinion the attached/detachable types are a good and sound
concept. It has already been proven in other languages (e.g. Java has
"definitely assigned") that it works.
But I am still struggling with the effort to mix attached/detachable
types and catcall avoidance (forbidding covariant redefinition witch
attached types). In that regard I completely agree with you. It is not
yet mature enough and all consequences are not yet thought through
completely.
By the way. Catcall avoidance by forbidding covariant redefinition on
attached types solves the problem only partly. With generic types you
still can produce catcalls. I think we do not loose a lot, if we allow
covariant redefinitions with attached types and leaving the catcall
detection problem to global analysis or runtime checks. Keep in mind
that catcalls occur rather seldom. We should not make the language more
complicate in order to improve something very very marginal.
Regards
Helmut
P.S. I am convinced that it is very important for the spread of the
Eiffel language to standardize the kernel library independant of a
specific implementation. That is what C did in the seventies and look at
the success ...
------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/eiffel_software/<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/eiffel_software/join (Yahoo! ID required)
<*> To change settings via email:
mailto:
eiffel_software-digest@...
mailto:
eiffel_software-fullfeatured@...
<*> To unsubscribe from this group, send an email to:
eiffel_software-unsubscribe@...
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/