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

Home » Public Forums » archive » Re: Structure Containing Structure: question about parentheses
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: Structure Containing Structure: question about parentheses [message #55249 is a reply to message #55247] Thu, 09 August 2007 10:20 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
On Aug 9, 9:36 am, lark...@gmail.com wrote:

> I have a question about using parentheses with structures that are
> members of a structure. I include a sample program below that
> demonstrates the behaviors.
>
> Basically I have no problem if I run the command
>
> state.str.c = 50
>
> But if I run the command
>
> (state.str).c = 50
>
> then I get the error:
>
> Attempt to store into an expression: Structure reference.
> Execution halted at: TESTSTRUCT 32 C:\teststruct.pro
> $MAIN$
>
> Can someone explain this behavior to me?

Here is an article that explains what is going on:

http://www.dfanning.com/misc_tips/ptr_struct.html

Cheers,

David
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: .lib C routines in IDL
Next Topic: Re: Use IDL6.0 to read gcc3.4(Mingw32) written data

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

Current Time: Wed Oct 08 17:43:41 PDT 2025

Total time taken to generate the page: 0.00756 seconds