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

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


  • Follow-Ups:
    • Re: memmove in Swift
      • From: "Gerriet M. Denkmann" <email@hidden>
References: 
 >memmove in Swift (From: "Gerriet M. Denkmann" <email@hidden>)

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