Skip to main content

Is Forward declarations in IDL supported by Visibroker 4.5?

  • February 16, 2013
  • 0 replies
  • 0 views

Problem:

  • Product: Visibroker 4.x, VBE5.x
  • JDK: NA
  • Platform: NA
  • Component : Naming Service, Gatekeeper

Does VisiBroker 4.5 support forward declaration of struct and union in IDL. Currently we are getting syntax error at the line where the struct is defined as forward declaration. If it is not supported in 4.5 and should be according to OMG CORBA Spec 2.5.

Resolution:

VBC 4.5 is compliant with OMG CORBA Spec 2.3 as per our installation manual (P1-1):

http://techpubs.borland.com/am/visibroker/vbcpp_v20_45/45/en/vbcpp45installation-guide.pdf

VisiBroker is a complete CORBA 2.3 Object Request Broker (ORB) that supports the development, deployment, and management of distributed object applications across a variety of hardware platforms and operating systems.

According to OMG CORBA Spec 2.3:

CORBA V2.3 Interface Declaration June 1999 (page 3-19) (http://www.omg.org/spec/CORBA/2.3/PDF):

3.7.4 Forward Declaration

A forward declaration declares the name of an interface without defining it. This permits the definition of interfaces that refer to each other. The syntax consists simply of the keyword interface followed by an <identifier> that names the interface. The actual definition must follow later in the specification. Multiple forward declarations of the same interface name are legal. It is illegal to inherit from a forward-declared interface whose definition has not yet been seen:


module Example {
  interface base; // Forward declaration
  // ...
  interface derived : base {};// Error
  interface base {}; // Define base
  interface derived : base {};// OK
};

OMG only defines forward declaration of interfaces in an IDL.


#declaration
#Security
#specs
#VisiBroker