• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Unions in Obj-C Code
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Unions in Obj-C Code (From: Mike <email@hidden>)

  • Prev by Date: Re: Unions in Obj-C Code
  • Next by Date: Re: Unions in Obj-C Code
  • Previous by thread: SOLVED: Unions in Obj-C Code
  • Next by thread: Re: Unions in Obj-C Code
  • Index(es):
    • Date
    • Thread