Why define a clone
or equal
method in Eiffel gives greater protection with respect to types problems in comparison to something similar in C#?
Asked
Active
Viewed 284 times
0

Ruben Capote
- 314
- 2
- 9
-
My brain is throwing exceptions attempting to parse this question. – Jun 12 '11 at 04:51
1 Answers
2
clone
and equal
don't offer anything great actually. These 2 routines are on their way out, replaced respectively by twin
and the operator ~
in the latest estudio versions.
The problem with both of these routines was that don't offer great protection. The both take objects of type ANY
(which is a problem). Their new counterparts are much safer and provide better control at compile time.

Zoran Simic
- 10,293
- 6
- 33
- 35