IDL 4.3 RTF Avatar
  1. OMG Issue

IDL43 — May optional be applied to a typedef

  • Key: IDL43-102
  • Status: open   Implementation work Blocked
  • Source: Remedy IT ( Johnny Willemsen)
  • Summary:

    The spec is not clear where optional may be applied, I wanted to use it with a typedef, see the test below, but it seems DDS XTypes disallowed it but IDL4 does seem to allow it, it says "This annotation may be used to set optionality on any element that makes sense to be optional.", my example makes sense about it. The spec should be more precise where this annotation (and others) maybe used

    module Test {
    @optional
    typedef long OptLongFoo;
    struct Bar

    { OptLongFoo f; };
    struct Z
    { OptLongFoo f; }

    ;
    };

  • Reported: IDL 4.2 — Fri, 6 Sep 2024 13:00 GMT
  • Updated: Fri, 27 Sep 2024 13:59 GMT