Re: memmove in Swift
Re: memmove in Swift
- Subject: Re: memmove in Swift
- From: Marco S Hyman <email@hidden>
- Date: Wed, 20 Aug 2014 21:53:33 -0700
On Aug 20, 2014, at 8:32 PM, Gerriet M. Denkmann <email@hidden> wrote:
> But I thought that maybe memmove might be more efficient:
Optimizing already?
>
> let dest : UnsafeMutablePointer<Void> = arr + lowerIndex + 1
arr + lowerIndex + 1 is meaningless to Swift. An [Int32] is not a
pointer that can be offset by some number of elements. I don't think
C thinking helps when trying to understand this language.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden