AW: [omniORB] static function?

Lars von Wedel vonwedel at aixcape.org
Mon Feb 18 13:09:20 GMT 2008


Ronald,

Look at how a naming service is designed and implemented. You would develop
an object of which only one instance exists. You may want to google for the
singleton design pattern to better understand. That is something that comes
close to what you probably want.

Regards,
Lars


> -----Ursprüngliche Nachricht-----
> Von: omniorb-list-bounces at omniorb-support.com 
> [mailto:omniorb-list-bounces at omniorb-support.com] Im Auftrag 
> von Ronald Andrae
> Gesendet: Montag, 18. Februar 2008 13:02
> An: omniorb-list at omniorb-support.com
> Betreff: Re: [omniORB] static function?
> 
> 
> How is it possible to use static functions with corba?
> 
> Stefan Naewe schrieb:
> > On 2/18/2008 12:44 PM, Ronald Andrae wrote:
> >> Hi,
> >>
> >> I want to declare static function in my IDL, but I haven't 
> found any
> >> information to do that.
> >>
> >> In example:
> >>
> >> interface Test {
> >>    static void hello();
> >> };
> >>
> >> Static cann't be found. How I can describe in the IDL that 
> a function
> >> is a static function?
> >
> > You can't! IDL != C++
> >
> > S.
> 
> _______________________________________________
> omniORB-list mailing list
> omniORB-list at omniorb-support.com 
> http://www.omniorb-support.com/mailman/listinfo/omniorb-list
> 




More information about the omniORB-list mailing list