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 > Re: Precursor, ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 4 of 7 Topic 851 of 913
Post > Topic >>

Re: Precursor, symmetry of is_equal

by Roger Browne <roger@[EMAIL PROTECTED] > Feb 16, 2007 at 05:19 PM

Daniel F Moisset wrote:

> So, my question is:
>  * Is this a language gotcha?

It's just a common-or-garden catcall, isn't it? Within the 'symmetric'
postcondition (during evaluation of the precursor call), the call to
"other.is_equal(Current)" is passing a PARENT as 'Current', whereas
'other' is a CHILD and is wanting to be passed another CHILD.

This never has worked, it never will work, it never can work. It was
discussed by NICE during the mid 90's; we never could convince Bertrand
Meyer, who always seems to believe that some kind of covariant "magic
bullet" is just around the next corner.

If you look at Bertrand's ETL3 drafts, you'll see that 'is_equal' is now
in some places declared with signature "is_equal(other: ?like Current)".
That might make it typesafe but it won't make it work for Daniel's
example.

Regards,
Roger




 7 Posts in Topic:
Precursor, symmetry of is_equal
"Daniel F Moisset&qu  2007-02-15 09:32:28 
Re: Precursor, symmetry of is_equal
Peter Horan <peter@[EM  2007-02-16 00:17:26 
Re: Precursor, symmetry of is_equal
Georg Bauhaus <bauhaus  2007-02-16 17:56:42 
Re: Precursor, symmetry of is_equal
Roger Browne <roger@[E  2007-02-16 17:19:06 
Re: Precursor, symmetry of is_equal
"Daniel F Moisset&qu  2007-02-16 12:59:17 
Re: Precursor, symmetry of is_equal
Gerald Hammer <hammer@  2007-02-17 10:54:41 
Re: Precursor, symmetry of is_equal
Gerald Hammer <hammer@  2007-02-23 10:32:31 

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 May 17 0:48:17 CDT 2008.