CORBA 2.3 NO IDEA Avatar
  1. OMG Issue

CORBA23 — name scoping issue

  • Key: CORBA23-199
  • Legacy Issue Number: 1587
  • Status: closed  
  • Source: Anonymous
  • Summary:

    Summary: In the course of a discussion Philippe Gautron pointed out to me that in
    ISO-C++, the scope of a class begins with its declaration, and hence a
    member or type declaration in the class may not introduce the same name
    as that of the class, exception being constructors of the class.
    Analogous rules apply to struct and namespace. When this principle is
    extended to the case insensitivity of IDL a consequence is that

    interface I

    { void i(); }

    ;

    is illegal as is:

    module M {
    interface m

    {....}

    ;
    };

    The basic rule is that the name of the scope, if it has one is
    implicitly inserted into the scope and hence cannot be reused for other
    purposes in that scope. Given that IDL has to be mapped to C++ this
    seems like an eminently reasonable restriction. However, I could not
    find this explicitly stated anywhere. Do y"all feel this is reasonable?
    If so, and if it is indeed not mentioned then I think we should add a
    line or two in 3.13 clarifying this?

  • Reported: CORBA 2.2 — Fri, 26 Jun 1998 04:00 GMT
  • Disposition: Resolved — CORBA 2.3
  • Disposition Summary:

    No Data Available

  • Updated: Fri, 6 Mar 2015 21:35 GMT