Path: utzoo!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!elroy.jpl.nasa.gov!decwrl!csus.edu!ucdavis!caldwr!rfinch From: rfinch@caldwr.water.ca.gov (Ralph Finch) Newsgroups: comp.lang.idl-pvwave Subject: Curious array behaviour? Message-ID: <275@locke.water.ca.gov> Date: 15 Mar 91 18:13:48 GMT Organization: Calif. Depart. of Water Resources, Sac. Lines: 18 PV-Wave 3.02 on a Sun 4. Array operations are quite powerful in idl-wave and so different from other languages that I think I still don't fully understand them. Here is something that has me puzzled: a=[1,2,3,4,5] print,a([-1]) -> 1 print,a(-1) -> ERROR Why the difference? -- Ralph Finch 916-445-0088 rfinch@water.ca.gov ...ucbvax!ucdavis!caldwr!rfinch Any opinions expressed are my own; they do not represent the DWR