home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / sys / amiga / programm / 15994 < prev    next >
Encoding:
Internet Message Format  |  1992-11-17  |  1.2 KB

  1. Path: sparky!uunet!charon.amdahl.com!pacbell.com!ames!agate!apple!decwrl!contessa!mwm
  2. From: mwm@contessa.palo-alto.ca.us (Mike Meyer)
  3. Subject: Re: What is wrong with this very simple c program?
  4. Newsgroups: comp.sys.amiga.programmer
  5. Distribution: world
  6. References: <BxIpyB.E7@unx.sas.com> <johnv.03kr@acix.DIALix.oz.au> <BxtBKL.LGI@unx.sas.com>
  7. X-NewsSoftware: Amiga Yarn 3.4, 1992/08/12 15:49:52
  8. Keywords: 
  9. Summary: 
  10. Message-ID: <mwm.2onl@contessa.palo-alto.ca.us>
  11. Date: 17 Nov 92 13:36:51 PST
  12. Organization: Missionaria Phonibalonica
  13. Lines: 16
  14.  
  15. In <BxtBKL.LGI@unx.sas.com>, walker@twix.unx.sas.com (Doug Walker) wrote:
  16. > In article <johnv.03kr@acix.DIALix.oz.au>, johnv@acix.DIALix.oz.au (John Verhoeven) writes:
  17. > |> Whats even more fun :-) is that in some compilers accessing arrays with
  18. > |> a negative subscript is also legal, eg foo[-1] = 5.
  19. > |> 
  20. > |> Does SAS C V6 allow this ?
  21. > Yes, it's part of the standard and all ANSI-compliant compilers
  22. > allow it.
  23.  
  24. I believe SAS C is polite enough to warn you when it notices such a
  25. thing (I know it does if you go off the other end of an array).
  26. However, it's a warning, so you can turn it off if you really want to.
  27.  
  28.     <mike
  29.