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

Home » Public Forums » archive » Re: global singleton object ?
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: global singleton object ? [message #26902 is a reply to message #26891] Tue, 02 October 2001 14:47 Go to previous messageGo to previous message
Mark Hadfield is currently offline  Mark Hadfield
Messages: 783
Registered: May 1995
Senior Member
> So, is there a way to easily define the object, or do I simply create it
> upon startup of my IDL and define it to a system variable?

Remember that functions are global in IDL.

Write a function that creates your settings object and assigns it to a
system variable. On every entry to the function, check whether the system
variable exists and points to a valid object. If it does, use that object.

I'm sure there are other ways to do this, and some of them may even be
better than this one!

---
Mark Hadfield
m.hadfield@niwa.cri.nz http://katipo.niwa.cri.nz/~hadfield
National Institute for Water and Atmospheric Research



--
Posted from clam.niwa.cri.nz [202.36.29.1]
via Mailgate.ORG Server - http://www.Mailgate.ORG
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Using IDL with Java
Next Topic: Re: happy palindrome day - and a challenge

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

Current Time: Sat Oct 11 05:29:34 PDT 2025

Total time taken to generate the page: 1.12148 seconds