home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!charon.amdahl.com!pacbell.com!ames!saimiri.primate.wisc.edu!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!news.sei.cmu.edu!cert!netnews.upenn.edu!netnews.noc.drexel.edu!king.mcs.drexel.edu!udmorrow
- From: udmorrow@mcs.drexel.edu (Daniel Morrow)
- Newsgroups: comp.sys.mac.programmer
- Subject: Re: problem with arithmetic and longints in THINK Pascal
- Message-ID: <1992Nov6.153434.9321@mcs.drexel.edu>
- Date: 6 Nov 92 15:34:34 GMT
- References: <1992Nov4.212432.3443@mcs.drexel.edu> <1992Nov5.005129.29548@sbcs.sunysb.edu> <1992Nov6.173213.12016@waikato.ac.nz>
- Distribution: usa
- Organization: Drexel University
- Lines: 13
-
- In article <1992Nov6.173213.12016@waikato.ac.nz> ldo@waikato.ac.nz (Lawrence D'Oliveiro, Waikato University) writes:
- >Yuk! Don't use a cast! (Ignorant C programmers...) Use the Ord4 function--
- >that's what it's for:
- >
- > x[i] := 10000 + Ord4(i - 1) * 10000
- >
-
- Thanks, everyone, for your advice. But I still have just one question.
-
- If Pascal is such a strongly typed language, why _doesn't_ it evaluate
- the right-hand-side of the expression as a longint?
-
- -Dan.
-