SCRPT 1.0 NO IDEA Avatar
  1. OMG Issue

SCRPT — Default-initialization for structs/unions/arrays/user exceptions/valuetypes

  • Key: SCRPT-4
  • Legacy Issue Number: 4503
  • Status: closed  
  • Source: INRIA ( Philippe Merle)
  • Summary:

    In the CORBA Scripting Language Specification v1.0 (OMG TC Document formal/01-06-05),
    creating a struct, union, array, user exception or valuetype required to provide
    a value for each field.

    e.g. Section 3.6.3 "Structure Values" page 3-8:

    "The creation of an IDL structure value is achieved by the calling notation
    (IDLType(field1,...,fieldn)). The interpreter checks if the number of
    given values is equal to the number of the expected IDL fields..."

    Ditto in sections 3.7.3 page 3-9, 3.10.3 page 3-15, 3.11.6 page 3-20,
    and 3.14.3 page 3-30.

    For complex structs, unions, arrays, user exceptions and valuetypes,
    Chris Oliver ( think it would be much more user-friendly
    to always allow the "constructor" to be optionally called with zero arguments
    which would result in default-initialization of the complex value.
    The user can then incrementally fill out the contents of complex values,
    for example:

    nc = CosNaming.NameComponent() = "a"
    nc.kind = "b"

    Since DynamicAny::DynAny in CORBA 2.3 provides default-initialization,
    this requires no extra effort for the implementor.


  • Reported: SCRPT 1.0b1 — Thu, 16 Aug 2001 04:00 GMT
  • Disposition: Resolved — SCRPT 1.0
  • Disposition Summary:

    see above

  • Updated: Fri, 6 Mar 2015 20:51 GMT