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: 1108a1,c52c30d32b866eae X-Google-Attributes: gid1108a1,public X-Google-Thread: 103376,2ea02452876a15e1 X-Google-Attributes: gid103376,public From: richieb@ritz.mordor.com (Richard Bielak) Subject: Re: Detecting type mismatch at compile time (was Re: Real OO) Date: 1996/04/03 Message-ID: #1/1 X-Deja-AN: 145617635 references: <4id031$cf9@dayuc.dayton.saic.com> <4jh5cr$101s@watnews1.watson.ibm.com> <65lDeVZF3RB@herold.franken.de> organization: Mordor International - Jersey City, NJ newsgroups: comp.lang.eiffel,comp.lang.ada,comp.object Date: 1996-04-03T00:00:00+00:00 List-Id: In article , Robert I. Eachus wrote: [...] > > Now at execution time I put some apples and some oranges in my >fruit arrangement, then do: > > S := FA(x) + FA(y); > > It is only at run-time that I know whether I am trying to add >apples and oranges. You should have written: if FA(x) > FA(y) then ... so only at runtime you would know if you are comparing apples and oranges! ;-) ...richie (sorry, couldn't resist) -- * richieb@ritz.mordor.com - at home | Richie Bielak * * richieb@calfp.com - at work | * * >> If it were readable, it wouldn't be called "code". (me) << * *------------------------------------------------------------------*