Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!ucsd!dog.ee.lbl.gov!pasteur!ucbvax!VTVM1.BITNET!GRANGERG From: GRANGERG@VTVM1.BITNET (Greg Granger) Newsgroups: comp.lang.modula2 Subject: Re: INTEGER to LONGREAL Message-ID: Date: 17 Oct 90 19:37:44 GMT References: Sender: daemon@ucbvax.BERKELEY.EDU Reply-To: Modula2 List Organization: The Internet Lines: 20 On Wed, 17 Oct 90 05:02:47 GMT Robert L Barton said: >> x:= VAL(LONGREAL, i); > > I would hope this doesn't work, since VAL() is meaningless for LONGREALs. >And ISO M-2 may do away with LONGREALs anyway. > >----------------------------------------------------------------------- Well sorry to rain on your parade, but in TopSpeed that is exactly how it works. As to standards, well sometimes what works is more useful than what is standard. I found no reference to LONGREALs in N Wirth's 3th ed of PIM2 and I don't know much about the ISO M2 work (cept it's not finished). If it were up to me I would do things differently, but it's not.... (I really don't care for all that type casting and explict conversion, wish someone would expand "the standard" (what ever it is) to include operator overloading then I overload '+' to add int's to card's or card's to real's or ... apples to oranges ) Greg