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

Home » Public Forums » archive » Way around zeroing of structures on creation?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Way around zeroing of structures on creation? [message #62184] Thu, 28 August 2008 13:01
Christopher Thom is currently offline  Christopher Thom
Messages: 66
Registered: October 2006
Member
Hi all,

I have a simple routine that defines a structure I use a lot, so that the
definition is automatic when I call it. e.g.

pro mystrct__define
tmp = {mystrct, $
foo:0.0d, $
bar:2.365434d
}
end

The help pages about automatic structure definition are very explicit that
all fields of a structure that is created by copying in this way will be
zeroed (or strings converted to null strings).

So...my question is, does anyone know a neat way around this? I want to
fill my structure with useful constants that will not change, but i'd like
to avoid having to do it by hand every time I create an instance of the
structure.

cheers
chris
[Message index]
 
Read Message
Previous Topic: Can't run idlde (7.0) on fedora 9
Next Topic: Re: Way around zeroing of structures on creation?

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

Current Time: Fri Oct 10 12:43:18 PDT 2025

Total time taken to generate the page: 0.63786 seconds