Path: utzoo!attcan!uunet!ncrlnk!ncr-sd!hp-sdd!hplabs!pyramid!infmx!aland From: aland@infmx.UUCP (Dr. Scump) Newsgroups: comp.databases Subject: Re: Informix 4gl - no integer arithmetic??? Summary: UPDATE -- another language mixup? Keywords: jw broken lie #6 Message-ID: <466@infmx.UUCP> Date: 24 Sep 88 20:11:37 GMT References: <466@pan.UUCP> <410@infmx.UUCP> <468@pan.UUCP> <5876@columbia.edu> <474@pan.UUCP> Organization: Informix Software Inc., Menlo Park, CA. Lines: 24 In article <474@pan.UUCP>, jw@pan.UUCP (Jamie Watson) writes: > ... > The reply further claimed the C is the "only major language" that does > not promote integers to floats in arithmetic evaluations. Well, I can > name a few "minor" languages that don't, such as Pascal, Fortran, Modula-2, > and Basic. There are plenty more. ^^^^^^ I just tried this in BASIC, and Mr./Ms. Watson is wrong [E6], unless Microsoft QuickBasic 4.0 differs greatly from other BASICs. The following program prints "A = 9", not "A = 5" like Jamie claims. 5 DEFINT A 10 LET A = (9 / 5) * 5 15 PRINT "A = "; A 20 END Like in Pascal, there is a *different* operator for integer division. -- Alan S. Denney | Informix Software, Inc. | {pyramid|uunet}!infmx!aland Disclaimer: These opinions are mine alone. If I am caught or killed, the secretary will disavow any knowledge of my actions. Santos' 4th Law: "Anything worth fighting for is worth fighting *dirty* for"