Re: Unions in Obj-C Code
Re: Unions in Obj-C Code
- Subject: Re: Unions in Obj-C Code
- From: Shawn Erickson <email@hidden>
- Date: Tue, 03 Apr 2007 21:25:20 -0700
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
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden