Re: Swift Beta 3 has no more CConstPointer
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