Re: C-Arrays in Swift
Re: C-Arrays in Swift
- Subject: Re: C-Arrays in Swift
- From: Chris Lattner <email@hidden>
- Date: Thu, 03 Jul 2014 17:41:22 -0700
On Jul 3, 2014, at 5:19 PM, Roland King < email@hidden> wrote: I was going to say read this
but then I remembered it's very good at telling you what pointers are, and totally bloody useless for telling you how to use them in any practical way at all. I just filed a documentation bug on it.
Anyway, as google has probably told you by now, use .withUnsafePointer() and have as much fun as I did getting the closure signature right.
I'm sure there was a way I managed at some point to cast to UnsafePointer<Int> and subscript it directly, but perhaps I dreamed that one.
I hope this is one area gets improved dramatically.
Indeed this is an area that will be refined a lot between now and the final release. Stay tuned for Beta 3 which will include many of these changes.
-Chris
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden