Issue 2612: Mapping for String Types - Bounded Strings (ada-rtf) Source: (, ) Nature: Clarification Severity: Summary: Summary: It should be clarified that mentions of the type String in this package refer to Standard.String. Being a child package of package CORBA, the type String in CORBA.Bounded_Strings otherwise refers to the type CORBA.String. Resolution: Revised Text: Actions taken: April 26, 1999: received issue Discussion: End of Annotations:===== From: "Oliver M. Kellogg" To: Subject: Mapping for String Types - Bounded Strings Date: Mon, 19 Apr 1999 09:32:55 +0200 X-Msmail-Priority: Normal Issue Type: Clarification PTC/98-08-20 section 21.16, Mapping for String Types, states " Conforming implementations shall provide a CORBA.Bounded_Strings package with the same speification and semantics as Ada.Strings.Bounded.Generic_Bounded_Length. " It should be clarified that mentions of the type String in this package refer to Standard.String. Being a child package of package CORBA, the type String in CORBA.Bounded_Strings otherwise refers to the type CORBA.String. Also, in the same paragraph: " A generic instantiation of the package shall be created using the bound for the IDL string as the associated parameter. The name and scope of the instantiation is left implementation defined. " However, the example immediately following that paragraph has " type Title is new CORBA.Bounded_String_512.Bounded_String; in the corresponding interface package. " Therefore, delete the phrase about leaving the name and scope of the generic instantiation implementation defined. Thanks, O. Kellogg -- DaimlerChrysler Aerospace Sensor Systems, Dept. VGE15 D-89070 Ulm, Germany phone: (+49) 731 392-7138 fax: (+49) 731 392-4255 e-mail: oliver.kellogg@vs.dasa.de Reply-To: From: "Victor Giddings" To: Cc: "'Nick Roberts'" Subject: Proposed Resolution for Issue 2612 - for review Date: Thu, 18 Aug 2005 17:09:30 -0400 Organization: Objective Interface System X-Mailer: Microsoft Office Outlook, Build 11.0.6353 Thread-Index: AcWkOR/pIWdNx/rRTKOKU4qmebAX9Q== Title: Mapping for String Types - Bounded Strings Source: DaimlerChrysler Aerospace, Oliver M. Kellogg, Oliver.Kellogg@vs.dasa.de Summary: PTC/98-08-20 section 21.16, Mapping for String Types, states "Conforming implementations shall provide a CORBA.Bounded_Strings package with the same speification and semantics as Ada.Strings.Bounded.Generic_Bounded_Length." It should be clarified that mentions of the type String in this package refer to Standard.String. Being a child package of package CORBA, the type String in CORBA.Bounded_Strings otherwise refers to the type CORBA.String. Also, in the same paragraph: " A generic instantiation of the package shall be created using the bound for the IDL string as the associated parameter. The name and scope of the instantiation is left implementation defined. " However, the example immediately following that paragraph has "type Title is new CORBA.Bounded_String_512.Bounded_String;" in the corresponding interface package. Therefore, delete the phrase about leaving the name and scope of the generic instantiation implementation defined. Resolution: Accept the proposed clarifications. . Add a parenthetical comments about package of String . Specify name and scope for instantiation. Revised Text: In section 3.9, in the paragraph: "Conforming implementations shall provide a CORBA.Bounded_Strings package with the same specification and semantics as Ada.Strings.Bounded.Generic_Bounded_Length." Add a parenthetical clarification: "Conforming implementations shall provide a CORBA.Bounded_Strings package with the same specification and semantics as Ada.Strings.Bounded.Generic_Bounded_Length. (All references to String, as opposed to Bounded_String, in the specification of Generic_Bounded_Length, must be changed to Standard.String to distinguish from the CORBA.String type.)" Change the following paragraph: "The CORBA.Bounded_Strings package has a generic formal parameter "Max" declared as type Positive and establishes the maximum length of the bounded string at instantiation. A generic instantiation of the package shall be created using the bound for the IDL string as the associated parameter. The name and scope of the instantiation is left implementation defined." to: "The CORBA.Bounded_Strings package has a generic formal parameter "Max" declared as type Positive and establishes the maximum length of the bounded string at instantiation. A generic instantiation of the package shall be created using the bound for the IDL string as the associated parameter. The name of the instantiation shall be "Bounded_String_" with the length appended, and the instantiation shall be a child package of the CORBA package." In the example following, change "may map to" to "shall map to". Similar changes are required in section 3.10. In the paragraph: "Conforming implementations shall provide a CORBA.Bounded_Wide_Strings package with the same specification and semantics as Ada.Strings.Wide_Bounded.Generic_Bounded_Length." Add a parenthetical clarification: "Conforming implementations shall provide a CORBA.Bounded_Wide_Strings package with the same specification and semantics as Ada.Strings.Wide_Bounded.Generic_Bounded_Length. (All references to Wide_String, as opposed to Bounded_Wide_String, in the specification of Generic_Bounded_Length, must be changed to Standard.Wide_String to distinguish from the CORBA.Wide_String type.)" Change the following paragraph: "The CORBA.Bounded_Wide_Strings package has a generic formal parameter "Max" declared as type Positive and establishes the maximum length of the bounded string at instantiation. A generic instantiation of the package shall be created using the bound for the IDL string as the associated parameter. The name and scope of the instantiation is left implementation defined." to: "The CORBA.Bounded_Strings package has a generic formal parameter "Max" declared as type Positive and establishes the maximum length of the bounded string at instantiation. A generic instantiation of the package shall be created using the bound for the IDL string as the associated parameter. The name of the instantiation shall be "Bounded_String_" with the length appended, and the instantiation shall be a child package of the CORBA package." In the example following, change "may map to" to "shall map to". Disposition: Resolved Victor Giddings Chair, Ada RTF victor_giddings@omg.org