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 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: IDL Anon Structs [message #4264] Thu, 18 May 1995 00:00
chase is currently offline  chase
Messages: 62
Registered: May 1993
Member
>>>> > "Robert" == Robert Velthuizen (DMIP) <velt@rad.usf.edu> writes:
In article <3pfd0n$89u@mother.usf.edu> velt@rad.usf.edu (Robert Velthuizen (DMIP)) writes:

Robert> Before you start messing up your User's manual, look at this:
Robert> IDL. Version 3.5.1 (sunos sparc).
IDL> w = {a: 0, b: 1}
IDL> x = {w: w, c: 2}
Robert> % Structures can't have anonymous structure members
Robert> % Execution halted at $MAIN$ .


As was pointed out in someone else's post, the use of anonymous
structure members (along with the CREATE_STRUCT routine) is a new
addition as of IDL Version 3.6 (see the ./notes/rel_note.doc in the
IDL distribution). We have postscript versions of the 3.6 manuals and
the appropriate changes are present in Chapter 7.

Chris
--
===============================
Bldg 24-E188
The Applied Physics Laboratory
The Johns Hopkins University
Laurel, MD 20723-6099
(301)953-6000 x8529
chris.chase@jhuapl.edu
Re: IDL Anon Structs [message #4268 is a reply to message #4264] Thu, 18 May 1995 00:00 Go to previous message
thompson is currently offline  thompson
Messages: 584
Registered: August 1991
Senior Member
rivers@cars3.uchicago.edu (Mark Rivers) writes:

> 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."
> .
> .
> .

> This is from the IDL release notes: (IDL_DIR/notes/rel_note.doc)

> 1/20/94
> The restriction that anonymous structures may not contain
> other anonymous structures has been removed.

> That restriction has been gone for quite some time. This does raise the
> question as to whether the User's Manual has been updated.

That (very welcome) change first appeared in IDL 3.6. Perhaps the manual is
for an earlier version of IDL?

Bill Thompson
Re: IDL Anon Structs [message #4270 is a reply to message #4264] Thu, 18 May 1995 00:00 Go to previous message
wart is currently offline  wart
Messages: 8
Registered: March 1995
Junior Member
In article <3pfd0n$89u@mother.usf.edu>,
Robert Velthuizen (DMIP) <velt@rad.usf.edu> wrote:
> 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$ .

I see. Sorry, I forgot to mention that I'm using V 3.6.1. I hadn't
realized that the restriction was lifted.

I haven't had a chance to try out V4.0 yet. It arrived this morning,
but we can't install it until Envi 2.0 gets here. *sigh*

--Wart
Re: IDL Anon Structs [message #4272 is a reply to message #4264] Thu, 18 May 1995 00:00 Go to previous message
rivers is currently offline  rivers
Messages: 228
Registered: March 1991
Senior Member
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."
.
.
.

This is from the IDL release notes: (IDL_DIR/notes/rel_note.doc)

1/20/94
The restriction that anonymous structures may not contain
other anonymous structures has been removed.

That restriction has been gone for quite some time. This does raise the
question as to whether the User's Manual has been updated.

____________________________________________________________
Mark Rivers (312) 702-2279 (office)
CARS (312) 702-9951 (secretary)
Univ. of Chicago (312) 702-5454 (FAX)
5640 S. Ellis Ave. (708) 922-0499 (home)
Chicago, IL 60637 rivers@cars3.uchicago.edu (Internet)
Re: IDL Anon Structs [message #4273 is a reply to message #4264] Thu, 18 May 1995 00:00 Go to previous message
patterso is currently offline  patterso
Messages: 36
Registered: February 1995
Member
Wart (wart@chop.ugcs.caltech.edu) wrote:
: 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."

Ahh, but will it STILL work in the next release? Or the one after that?
Or.....

Confucious say,"Beware of using undocumented features" :)i

Though, maybe now you've found it, RSI will let it stay.

Tim

: --Wart
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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: IDL complex math error fixed!
Next Topic: DICOM viewer in IDL

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

Current Time: Thu Oct 09 18:05:22 PDT 2025

Total time taken to generate the page: 0.71975 seconds