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: 109fba,b87849933931bc93 X-Google-Attributes: gid109fba,public X-Google-Thread: fac41,b87849933931bc93 X-Google-Attributes: gidfac41,public X-Google-Thread: f43e6,b87849933931bc93 X-Google-Attributes: gidf43e6,public X-Google-Thread: 103376,b87849933931bc93 X-Google-Attributes: gid103376,public X-Google-Thread: 114809,b87849933931bc93 X-Google-Attributes: gid114809,public X-Google-Thread: 1108a1,b87849933931bc93 X-Google-Attributes: gid1108a1,public From: mab@dst17.wdl.loral.com (Mark A Biggar) Subject: Re: OO, C++, and something much better! Date: 1997/01/08 Message-ID: <5b1ais$oev@wdl1.wdl.lmco.com>#1/1 X-Deja-AN: 208537050 references: <32D2E6C8.13728473@eiffel.com> organization: Lockheed Martin Western Development Labs newsgroups: comp.lang.c++,comp.lang.smalltalk,comp.lang.eiffel,comp.lang.ada,comp.object,comp.software-eng Date: 1997-01-08T00:00:00+00:00 List-Id: In article jsa@alexandria (Jon S Anthony) writes: >In article <32D2E6C8.13728473@eiffel.com> Bertrand Meyer writes: >> So in the constrained genericity case SORTED_LIST [INTEGER] >> will be permitted, since COMPARABLE is indeed an existing class, > >Good point. Lost a Minbari Cruiser on this one... Not really as you can always say: generic type G is private; with function "<"(L,R: G) return Boolean is <>; package SORTED_LIST is ... This requires that either the Type G have a "<" defined or that you provide one at the time of instanitation. Of course there is nothing that requires that the provided function realy be a less-than function (which is usefull as providing a ">" instead reverses the order of the list) but Eiffel has the same problem and there is no guarentee that a class derived from COMPARABLE hasn't redefined "<" to do something else either. -- Mark Biggar mab@wdl.lmco.com