home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / sys / mac / programm / 18101 < prev    next >
Encoding:
Internet Message Format  |  1992-11-08  |  1.1 KB

  1. 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
  2. From: udmorrow@mcs.drexel.edu (Daniel Morrow)
  3. Newsgroups: comp.sys.mac.programmer
  4. Subject: Re: problem with arithmetic and longints in THINK Pascal
  5. Message-ID: <1992Nov6.153434.9321@mcs.drexel.edu>
  6. Date: 6 Nov 92 15:34:34 GMT
  7. References: <1992Nov4.212432.3443@mcs.drexel.edu> <1992Nov5.005129.29548@sbcs.sunysb.edu> <1992Nov6.173213.12016@waikato.ac.nz>
  8. Distribution: usa
  9. Organization: Drexel University
  10. Lines: 13
  11.  
  12. In article <1992Nov6.173213.12016@waikato.ac.nz> ldo@waikato.ac.nz (Lawrence D'Oliveiro, Waikato University) writes:
  13. >Yuk! Don't use a cast! (Ignorant C programmers...) Use the Ord4 function--
  14. >that's what it's for:
  15. >
  16. >    x[i] := 10000 + Ord4(i - 1) * 10000
  17. >
  18.  
  19. Thanks, everyone, for your advice. But I still have just one question.
  20.  
  21. If Pascal is such a strongly typed language, why _doesn't_ it evaluate
  22. the right-hand-side of the expression as a longint?
  23.  
  24. -Dan.
  25.