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

Home » Public Forums » archive » Re: Maddening structures
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: Maddening structures [message #50220 is a reply to message #50219] Mon, 18 September 2006 06:54 Go to previous messageGo to previous message
Edd Edmondson is currently offline  Edd Edmondson
Messages: 50
Registered: January 2003
Member
Edd <eddedmondson@hotmail.com> wrote:

> That's where I was looking too. I wasn't sure how to handle the
> structure creation neatly though. Once you have the tag names you can
> loop over them in a for loop (there won't be that many tags anyway) so
> it's not too bad. Just a bit hairy. It'd be nice if there was a
> reform-alike. :-)

Saying it's not too bad is an exaggeration. All this is happening
inside an execute(), so I'm entering it in one set of ''s. I need to
put it all in another execute() inside that to make it
on-the-fly-enough, which uses up a "" inside the '', leaving me using
STRING(39B) to get a third tier. I've managed to build up a string
that looks like

'mystructure=create_struct('foo',0.1,'bar',1242999,'baz',som estring)'
which means I get my float in foo, my long in bar, but baz complains
because the string is coming out without the ''s it needs, only I
can't put those ''s in in general or the floats and longs turn into
strings too, breaking other stuff.

It's the ugliest code I've written (well, since that bit of Perl I did
last week) and I'm about to throw a brick at the screen. All this just
to rejig a structure a bit. Surely this can be done with histogram()
or something ;-)

--
Edd
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: calculating rotations from a transformation matrix
Next Topic: IMSL coming to IDL

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

Current Time: Fri Oct 10 02:37:53 PDT 2025

Total time taken to generate the page: 0.56040 seconds