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
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 mails | Author | Date |
|---|---|---|
| Mike | Apr 4, 05:44 | |
| Spencer Salazar | Apr 4, 06:21 | |
| Shawn Erickson | Apr 4, 06:25 | |
| Brian Bergstrand | Apr 4, 06:29 | |
| Mike | Apr 4, 08:12 | |
| Steven Noyes | Apr 4, 17:58 |






Cocoa mail archive

