[PolyORB-users] [Fwd: Re: omniORB-4.1.0-beta1/src/examples/call_back/echo_callback.idl]

Oliver Kellogg oliver.kellogg at eads.com
Tue Feb 21 13:00:25 CET 2006


Hi,

I believe I've bumped into a mapping problem, see attached IDL file.

Greetings,

Oliver


-------- Original Message --------
Subject: Re: omniORB-4.1.0-beta1/src/examples/call_back/echo_callback.idl
Date: Tue, 21 Feb 2006 11:54:33 +0000
From: Duncan Grisby <duncan at grisby.org>
To: Oliver Kellogg <oliver.kellogg at eads.com>

On Tuesday 21 February, Oliver Kellogg wrote:

> I just tried compiling the call_back example using PolyORB (an ORB targeting
> Ada) and I got the following error message:
> 
> cb-server.ads:22:15: formal parameter "cb" cannot be used before end of
> specification
> cb-server.ads:30:15: formal parameter "cb" cannot be used before end of
> specification
> 
> It turns out that Ada does not like the reuse of the "cb" as a
> parameter name to an operation when the same name is also used as the
> module name.

You should file a bug with the PolyORB maintainers. The IDL is
definitely valid.

Cheers,

Duncan.

-- 
  -- Duncan Grisby         --
   -- duncan at grisby.org     --
    -- http://www.grisby.org --
-------------- next part --------------
#ifndef __ECHO_CALLBACK_IDL__
#define __ECHO_CALLBACK_IDL__


module cb {

  interface CallBack {

    void call_back(in string mesg);

  };


  interface Server {

    // Server calls back to client just once in a
    // recursive call before returning.
    void one_time(in CallBack c, in string mesg);

    // Server remembers the client's reference, and
    // will call the call-back periodically.  It stops
    // only when shutdown, or a call to the client fails.
    void register(in CallBack c, in string mesg,
		  in unsigned short period_secs);

    // Shuts down the server.
    void shutdown();

  };

};


#endif 


More information about the PolyORB-users mailing list