From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fac41,c52c30d32b866eae X-Google-Attributes: gidfac41,public X-Google-Thread: 103376,2ea02452876a15e1 X-Google-Attributes: gid103376,public X-Google-Thread: 1108a1,c52c30d32b866eae X-Google-Attributes: gid1108a1,public From: jhd@herold.franken.de (Joachim Durchholz) Subject: Re: Real OO Date: 1996/05/09 Message-ID: <68XCYN-k3RB@herold.franken.de>#1/1 X-Deja-AN: 154160567 references: <68P8IzIk3RB@herold.franken.de> newsgroups: comp.lang.eiffel,comp.lang.ada,comp.object Date: 1996-05-09T00:00:00+00:00 List-Id: donh@syd.csa.com.au wrote 09.05.96 on Re: Real OO: > :Well, Eiffel doesn't allow you to freeze parameter classes, so we have > :a point where Ada allows a bit more freedom. > > Disagree. The fact that Eiffel allows you to redefine them to conformant > types in descendants indicates greater freedom not less. There is no need to > preclude redefinition and it is more flexible to be able to. Depends on point of view. In Ada, I have more freedom in that I can specify more restrictions ... More generally speaking, just because there is more freedom for programmers to use a routine, this automatically means the author of the routine is forced to be less restrictive about his parameters. Of course, this is not a problem in Eiffel - the universally accepted rule is "wherever a class is named, a descendant will do" (with some notable exceptions, but these are intended for special cases and not for normal use). Still, I don't have a good Eiffel variant of the corresponding_parts_equal routine earlier in this thread. Any takers? -Joachim -- Looking for a new job. Resume available on request.