Issue 134: Union problem (cxx_revision) Source: (, ) Nature: Uncategorized Severity: Summary: Summary: Is this legal: union X switch(boolean) {case TRUE: short a; case FALSE: long b;default: double c;};? If no, why? If yes, what does _d() return if the union was set with the c() access function? Resolution: fixed Revised Text: Actions taken: September 24, 1996: Received issue February 19, 1999: closed issue Discussion: End of Annotations:===== >From mml@tiac.net Tue Sep 24 16:59:32 1996 Received: from mail.bruker.com by amethyst.omg.org.omg.org (5.4R2.01/1.34) id AA20003; Tue, 24 Sep 1996 16:59:32 -0400 Received: by gateway.bruker.com id <35756>; Tue, 24 Sep 1996 17:55:13 -0400 Sender: ml@bruker.com Message-Id: <96Sep24.175513edt.35756@gateway.bruker.com> Date: Tue, 24 Sep 1996 16:50:57 -0400 From: Marc Laukien Organization: Object-Oriented Concepts, Inc. X-Mailer: Mozilla 3.0 (X11; I; IRIX 5.3 IP22) Mime-Version: 1.0 To: cxx_revision@omg.org Subject: Union problem Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Is this legal? // IDL union MyUnion switch(boolean) { case TRUE: short v1; case FALSE: long v2; default: double v3; }; If the answer is 'no', where in the CORBA spec is this specified? If the answer is 'yes', what does the _d() access function return if the union has been set with the v3() access function? Regards, Marc Laukien >From geoff Tue Sep 24 17:02:41 1996 Received: by amethyst.omg.org.omg.org (5.4R2.01/1.34) id AA20065; Tue, 24 Sep 1996 17:02:41 -0400 Date: Tue, 24 Sep 1996 17:02:41 -0400 From: geoff (Geoffrey Speare) Message-Id: <9609242102.AA20065@amethyst.omg.org.omg.org> To: mml@tiac.net Cc: cxx_revision@omg.org, issues In-Reply-To: Marc Laukien's message of Tue, 24 Sep 1996 16:50:57 -0400 <96Sep24.175513edt.35756@gateway.bruker.com> Subject: [Issue 134:] Union problem > Is this legal? > // IDL > union MyUnion switch(boolean) > { > case TRUE: short v1; > case FALSE: long v2; > default: double v3; > }; > If the answer is 'no', where in the CORBA spec is this specified? > If the answer is 'yes', what does the _d() access function return > if the > union has been set with the v3() access function? > Regards, > Marc Laukien