Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado
Bob, Hm, this works fine for me on IDL 6.2, Windows XP. Haje "R.G. Stockwell" <no@email.please> wrote in message news:JUxaf.41$Bd3.15259@news.uswest.net... > Hi everybody, > I've gone insane. Here is the evidence: > > IDL> print,reverse([1,2,3,4,5]) > > 1 1 1 1 1 > > > Why the heck is reverse giving me an array of ones, instead > of reversing the array? > I think it used to work ok, since I came across this problem > in an old color table procedure (where I can select to reverse the > color table). > > Cheers, > bob >
Haje Korth writes: > Hm, this works fine for me on IDL 6.2, Windows XP. I'm pretty sure Bob is working on a Macintosh. :-) Cheers, David -- David Fanning, Ph.D. Fanning Software Consulting, Inc. Coyote's Guide to IDL Programming: http://www.dfanning.com/
David Fanning wrote: > Haje Korth writes: > > > >> Hm, this works fine for me on IDL 6.2, Windows XP. > > > I'm pretty sure Bob is working on a Macintosh. :-) Oh well, on a Macintosh it's quite reasonable that reverse([1,2,3,4,5]) would give [1,1,1,1,1]. See your smiley and raise you one :-) :-) -- Mark Hadfield "Kei puwaha te tai nei, Hoea tahi tatou" m.hadfield@niwa.co.nz National Institute for Water and Atmospheric Research (NIWA)
In article <MPG.1dd476b26207ce8a98968e@news.frii.com>, David Fanning <david@dfanning.com> wrote: > I'm pretty sure Bob is working on a Macintosh. :-) > > Cheers, > > David Oh, libel! Libel! bowman> idl IDL Version 6.2, Mac OS X (darwin ppc m32). (c) 2005, Research Systems, Inc. IDL> print,reverse([1,2,3,4,5]) % Compiled module: REVERSE. 5 4 3 2 1 IDL> Ken Bowman