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

Home » Public Forums » archive » Temporary variables still checked out
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: Temporary variables still checked out [message #15622 is a reply to message #15483] Thu, 27 May 1999 00:00 Go to previous message
steinhh is currently offline  steinhh
Messages: 260
Registered: June 1994
Senior Member
Peter Mason wrote:
[..]
>> ((*(info.ptr)).optIndex)[i,*] = 0
> => Instead of this, try (*info.ptr).optIndex[i,*]=0; etc.
>
> Things DO get a bit unsettling when (structures of) pointers to
> structures are involved, but a bit of command line action will
> normally clarify IDL's workings with brackets soon enough. (Basically,
> you must restrict your bracketing to just the pointer component(s).)

Which reminds me that I should have registered my wish for
a pointer-to-structure-dereference operator (like C) with
RSI.... What link was that..?

Wouldn't it be great to be able to say just

info.ptr-->optIndex[i,*]

instead of all that gibberish..... And as for the "name" of
the operator, there shouldn't be any real problem in using
"->" even though it's also used for objects, but if they want
to avoid the extra checking, they could go for "-->" like
above instead.... or something else.

What *really* bugs me is why on earth they didn't provide
an operator like this in the first place when they introduced
pointers..... But by all means, don't get me wrong, pointers
and objects are the best things to happen to IDL since....
well, ... since ... hmm, since I discovered the Emacs
editing/shell mode for IDL!

Regards,

Stein Vidar
[Message index]
 
Read Message
Read Message
Previous Topic: Re: REPENT: & irreverent "humour" � � ` ��
Next Topic: Roundoff error in SMOOTH

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

Current Time: Sat Oct 11 10:10:09 PDT 2025

Total time taken to generate the page: 0.16171 seconds