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

Home » Public Forums » archive » Re: Are user-defined private methods possible?
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: Are user-defined private methods possible? [message #67202 is a reply to message #67201] Wed, 08 July 2009 10:59 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Paul van Delst writes:

> As the subject states, are user-defined private methods possible in IDL?
>
> I have some object methods that I want to be private to the class (like Init and Cleanup)
> but I can't find any info on how to do that in the IDL help. Once the methods in question
> are invoked (and, thus, compiled) in a public method, they're accessible from outside the
> class.

There is nothing like a "private" method in IDL.
However, there are some things you can do to keep
neighborhood eyes from oggling the babes in the
backyard pool.

For example, you can give your "private" methods
ugly names (I usually append an underscore to the
method name), and you can set the HIDDEN compile
option, so the casual user doesn't know it is there
when the object code is compiled:

PRO myobject::_myprivateMethod
compile_opt HIDDEN
...
END

But nothing is going to stop a determined 14-year-old
with a good set of field glasses. :-(

Cheers,

David


--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: nike clothing,nike shoes,online store,http://www.nbashoe.com air Jordan Shoes,Nike Air Jordans, Air Force Ones,Retro Air Jordan, Bape Hoodies,Bape shoes-Tencent Traveler|Jordan Shoes,Nike Air Jordans, Air Force Ones,Retro Air Jordan, Bape Hoodie
Next Topic: Re: Question about user input in IDL

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

Current Time: Sat Oct 11 09:05:20 PDT 2025

Total time taken to generate the page: 1.04317 seconds