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

Home » Public Forums » archive » Re: Some special behaviour of ROUTINE_NAMES
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: Some special behaviour of ROUTINE_NAMES [message #19160 is a reply to message #19159] Fri, 25 February 2000 00:00 Go to previous message
Craig Markwardt is currently offline  Craig Markwardt
Messages: 1869
Registered: November 1996
Senior Member
Karsten Rodenacker <rodena@gsf.de> writes:

> Hallo IDL gurus,
> did anybody remark the quite special behaviour of that undocumented
> function ROUTINE_NAMES. Try to read with the idl macro import_image a
> file beginning with a number. A structure is generated with a variable
> name starting with a number, which is quite difficult to be accessed.
> Doesn't that open a lot of new possibilities?

I don't know what possibilities you are talking about :-), but you can
make funny and illegal structures by yourself too. Amuse your
friends.

IDL Version 5.2.1 (linux x86). (c) 1999, Research Systems, Inc.
IDL> foo = create_struct('1',1, '2',2)
IDL> help, /struct, foo
** Structure <817fda4>, 2 tags, length=4, refs=1:
1 INT 1
2 INT 2
IDL> print, foo.(0), foo.(1)
1 2

But, as you can see, the elements can be accessed by using the
array-like indexing of structure tags.

Craig

--
------------------------------------------------------------ --------------
Craig B. Markwardt, Ph.D. EMAIL: craigmnet@cow.physics.wisc.edu
Astrophysics, IDL, Finance, Derivatives | Remove "net" for better response
------------------------------------------------------------ --------------
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: IDLgrWindow (?) bug
Next Topic: object graphics colormap bug ?

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

Current Time: Mon Dec 01 08:59:29 PST 2025

Total time taken to generate the page: 1.76084 seconds