• 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: How does the Swift Darwin module work?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How does the Swift Darwin module work?


  • Subject: Re: How does the Swift Darwin module work?
  • From: Roland King <email@hidden>
  • Date: Sun, 19 Oct 2014 07:40:07 +0800

> On 19 Oct 2014, at 5:23 am, Jean-Daniel Dupas <email@hidden> wrote:
>
> AFAIK, variadic C functions are not (yet) callable from swift code.
>
>

They aren’t - I didn’t remember fnctl() was varidadic. I shall quote an Apple engineer then ..

"This is not possible in Swift. C variadics are inherently unsafe, and not compatible with Swift variadics. You're encouraged to provide alternate versions of your collection-y variadics that take an array. Your format-y variadics (like this one?) can use Swift's String's variadic initializers ahead of time."

So you get to go wrap fcntl() in something else it seems.
_______________________________________________

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: How does the Swift Darwin module work?
      • From: Rick Mann <email@hidden>
References: 
 >How does the Swift Darwin module work? (From: Rick Mann <email@hidden>)
 >Re: How does the Swift Darwin module work? (From: Jean-Daniel Dupas <email@hidden>)

  • Prev by Date: Re: Clear NSSearchField
  • Next by Date: Re: Clear NSSearchField
  • Previous by thread: Re: How does the Swift Darwin module work?
  • Next by thread: Re: How does the Swift Darwin module work?
  • Index(es):
    • Date
    • Thread