comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » reverse problem
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: reverse problem [message #46187 is a reply to message #46053] Fri, 04 November 2005 07:38 Go to previous message
news.qwest.net is currently offline  news.qwest.net
Messages: 137
Registered: September 2005
Senior Member
I think I have resolved the issue. I'd guess it is a namespace problem.
I had a keyword "reverse" as well as the function "reverse()".
This is using the default compiler options (i.e. I am not setting anything).


So if you start of a fresh IDL, and type
IDL> .run namespacecrash

% Compiled module: NAMESPACECRASH.

% Compiled module: $MAIN$.

0.000000 1.00000 2.00000 3.00000 4.00000

1 1 1 1 1




Here is the routine:

function namespacecrash,array,reverse = reverse

if keyword_set(reverse) then begin
array = reverse(array)
endif

return,array
end

array = findgen(5)

print,namespacecrash(array)

print,namespacecrash(array,/rev)
end



My results are:
% Compiled module: NAMESPACECRASH.

% Compiled module: $MAIN$.

IDL> .GO

0.000000 1.00000 2.00000 3.00000 4.00000

1 1 1 1 1

IDL> help,!version,/st

** Structure !VERSION, 8 tags, length=76, data length=76:

ARCH STRING 'x86'

OS STRING 'Win32'

OS_FAMILY STRING 'Windows'

OS_NAME STRING 'Microsoft Windows'

RELEASE STRING '6.1.1'

BUILD_DATE STRING 'Oct 11 2004'

MEMORY_BITS INT 32

FILE_OFFSET_BITS

INT 64
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: online help IDL 6.2
Next Topic: Printinf Latitudes & Longitudes in a MAP using IDL

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sat Oct 11 10:22:46 PDT 2025

Total time taken to generate the page: 0.85872 seconds