• 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: C-Arrays in Swift
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

https://developer.apple.com/library/prerelease/ios/documentation/Swift/Conceptual/BuildingCocoaApps/InteractingWithCAPIs.html

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

References: 
 >C-Arrays in Swift (From: "Gerriet M. Denkmann" <email@hidden>)
 >Re: C-Arrays in Swift (From: Roland King <email@hidden>)

  • Prev by Date: Re: C-Arrays in Swift
  • Next by Date: Re: C-Arrays in Swift
  • Previous by thread: Re: C-Arrays in Swift
  • Next by thread: Re: C-Arrays in Swift
  • Index(es):
    • Date
    • Thread