• 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: "Gerriet M. Denkmann" <email@hidden>
  • Date: Tue, 08 Jul 2014 15:15:15 +0700

On 8 Jul 2014, at 14:03, Roland King <email@hidden> wrote:

>>
>> 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?
I just have done so.

> 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.

I found ConstUnsafePointer as a working replacement for CConstPointer.
No idea though whether this is correct or not. At least it compiles now.


> And the iBooks book updated too although I had to do a little dance to get that to download.
I did iBooks → Store → Check for Available Downloads... and got told that all was fine.
No option to update my two Swift books.

Well, that is another problem for another day I guess.

Kind regards,

Gerriet.



 _______________________________________________
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: Roland King <email@hidden>
References: 
 >Swift Beta 3 has no more CConstPointer (From: "Gerriet M. Denkmann" <email@hidden>)
 >Re: Swift Beta 3 has no more CConstPointer (From: Roland King <email@hidden>)

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