• 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: Swift Beta 3 has no more CConstPointer
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Swift Beta 3 has no more CConstPointer


  • Subject: Re: Swift Beta 3 has no more CConstPointer
  • From: Roland King <email@hidden>
  • Date: Tue, 08 Jul 2014 15:03:15 +0800

> On 8 Jul 2014, at 3:00 pm, Gerriet M. Denkmann <email@hidden> wrote:
>
> This worked in Swift Beta 2. But Beta 3 complains	Error: Use of undeclared type 'CConstPointer'
>
> let zerosArrayPointer : CConstPointer<Int> = appDelegate!.halHelper.zerosArray
> let zerosArray = UnsafePointer<Int>(zerosArrayPointer)
>
> halHelper.zerosArray returns a pointer to: NSUInteger zerosArray[256];
>
> This is the way I used to use this:
> 	localCount += UInt( zerosArray[ Int(oneByte) ] )
>
>
> What to do now?
>


Have you read the release notes for a start? They give a brief overview about what changed in Beta 3 (lots of stuff) including the massive changes to C pointers, changes which look at first sight quite sensible. I’ve not yet seen an updated Swift/ObjC/C document yet so it’s poke around and use autocomplete or check the headers for now.

And the iBooks book updated too although I had to do a little dance to get that to download.


 _______________________________________________
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


  • Follow-Ups:
    • Re: Swift Beta 3 has no more CConstPointer
      • From: "Gerriet M. Denkmann" <email@hidden>
References: 
 >Swift Beta 3 has no more CConstPointer (From: "Gerriet M. Denkmann" <email@hidden>)

  • Prev by Date: Swift Beta 3 has no more CConstPointer
  • Next by Date: Re: Swift Beta 3 error
  • Previous by thread: Swift Beta 3 has no more CConstPointer
  • Next by thread: Re: Swift Beta 3 has no more CConstPointer
  • Index(es):
    • Date
    • Thread