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

Home » Public Forums » archive » Re: IDL Anon Structs
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: IDL Anon Structs [message #4277 is a reply to message #4264] Thu, 18 May 1995 00:00 Go to previous message
velt is currently offline  velt
Messages: 19
Registered: June 1994
Junior Member
Before you start messing up your User's manual, look at this:

IDL. Version 3.5.1 (sunos sparc).
IDL> w = {a: 0, b: 1}
IDL> x = {w: w, c: 2}
% Structures can't have anonymous structure members
% Execution halted at $MAIN$ .


Robert Velthuizen (velt@rad.usf.edu),
Digital Medical Imaging Program of the
H. Lee Moffitt Cancer Center and Research Institute at the
University of South Florida, Tampa FL 33612.



In article <3pe065$i71@gap.cco.caltech.edu>, wart@chop.ugcs.caltech.edu (Wart) writes:
> Interesting note about anonymous structures:
>
> p. 7-1 of the IDL User's Manual states: "Anonymous Structures cannot
> contain other anonymous structures."
>
> However... try this:
>
> IDL> w = {a: 0, b: 1}
> IDL> x = {w: w, c: 2}
> IDL> help, w
> W STRUCT = -> <Anonymous> Array(1)
> IDL> help, x
> X STRUCT = -> <Anonymous> Array(1)
> IDL> help, x.w
> <Expression> STRUCT = -> <Anonymous> Array(1)
>
> As one of my grade school teachers used to tell us whenever there was an
> error in a text: "Take out your pencils and cross out that sentence in
> your textbook."
>
> --Wart
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: IDL complex math error fixed!
Next Topic: DICOM viewer in IDL

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

Current Time: Sun Oct 12 11:54:05 PDT 2025

Total time taken to generate the page: 0.56103 seconds