Skip navigation.
 
mlRe: Unions in Obj-C Code
FROM : Shawn Erickson
DATE : Wed Apr 04 06:25:20 2007

On Apr 3, 2007, at 8:44 PM, Mike wrote:

> Are unions supported in Obj-C? If so is there anything special I 
> have to do to use them?


Are unions supported in C? Yes.

What is Objective-C? A superset of C.

:)
Try "union serial_buff s;" instead of "serial_buff s;" in your method 
implementation or typedef your union like you did for the serial_rec 
structure.... assuming that is the compile error you are seeing 
(helps to post the specific error message).

-Shawn

Related mailsAuthorDate
mlUnions in Obj-C Code Mike Apr 4, 05:44
mlRe: Unions in Obj-C Code Spencer Salazar Apr 4, 06:21
mlRe: Unions in Obj-C Code Shawn Erickson Apr 4, 06:25
mlRe: Unions in Obj-C Code Brian Bergstrand Apr 4, 06:29
mlSOLVED: Unions in Obj-C Code Mike Apr 4, 08:12
mlRe: Unions in Obj-C Code Steven Noyes Apr 4, 17:58