Re: [swift-users] Object size on heap

2016-03-21 Thread Howard Lovatt via swift-users
How do you call swift_class_getInstanceExtents, it doesn't show in Xcode? -- Howard. On 22 March 2016 at 06:07, Joe Groff wrote: > > > On Mar 19, 2016, at 1:53 PM, Howard Lovatt via swift-users < > swift-users@swift.org> wrote: > > > > Hi, > > > > Is there a way to find out how big an object

Re: [swift-users] is inheritdoc available in swift?

2016-03-21 Thread Dmitri Gribenko via swift-users
On Mon, Mar 21, 2016 at 11:02 AM, Maciej Madaj via swift-users wrote: > Hi! > > I’m developing SDK for iOS, written purely in Swift - and I wonder is there > a way to use something similar to inheritdoc like in Java? Hi Maciej, This is a feature that we likely want on by default without any anno

Re: [swift-users] Strange type error

2016-03-21 Thread Howard Lovatt via swift-users
Hi, I don't understand your comment, can you explain some more please? Thanks, -- Howard. On Monday, 21 March 2016, zh ao wrote: > You protocol is not defined properly. > > On Mon, Mar 21, 2016 at 7:08 AM, Howard Lovatt via swift-users < > swift-users@swift.org > > wrote: > >> HI, >> >> Does

[swift-users] Swift 2.2 released!

2016-03-21 Thread Ted Kremenek via swift-users
Hi everyone, I am very pleased to announce the release of Swift 2.2! This is the first release of Swift since Swift became an open source project. Swift 2.2 began it’s convergence in mid-January when it branched from master, and since then is had taken curated changes (bug fixes and some lang

Re: [swift-users] libswift frontend ios

2016-03-21 Thread Ramakrishna Mallireddy via swift-users
After resolving the opengles conflict with llvm code base, I am stuck at undefined symbol error, Undefined symbols for architecture i386: "(anonymous namespace)::*LoweredValue*::*$_6*::*$_7*::*~$_7()*", referenced from: (anonymous namespace)::*LoweredValue*::*LoweredValue*(*swift*::*irge

Re: [swift-users] Object size on heap

2016-03-21 Thread Joe Groff via swift-users
> On Mar 19, 2016, at 1:53 PM, Howard Lovatt via swift-users > wrote: > > Hi, > > Is there a way to find out how big an object is on the heap? No public API yet. For entertainment purposes, you could use the runtime's swift_class_getInstanceExtents function, passing in the class object for t

Re: [swift-users] Collection underestimatedCount() does _?

2016-03-21 Thread Jens Alfke via swift-users
> On Mar 19, 2016, at 1:53 AM, Will Stanton via swift-users > wrote: > > Don’t most collections have O(1) `count` anyway? No; linked lists and trees, which are pretty popular data structures, are generally O(n) to count. —Jens___ swift-users mailin

Re: [swift-users] Object size on heap

2016-03-21 Thread Brent Royal-Gordon via swift-users
>> Is there a way to find out how big an object is on the heap? > > Yes, the sizeof() function. I think he's asking for the size of the object itself. For a reference type, `sizeof()` gives you the size of the reference. -- Brent Royal-Gordon Architechies _

Re: [swift-users] Object size on heap

2016-03-21 Thread Jens Alfke via swift-users
> On Mar 19, 2016, at 4:53 PM, Howard Lovatt via swift-users > wrote: > > Is there a way to find out how big an object is on the heap? Yes, the sizeof() function. —Jens___ swift-users mailing list swift-users@

Re: [swift-users] Latest builds broken?

2016-03-21 Thread Max Howell via swift-users
Yes, we’re tracking this here: https://bugs.swift.org/browse/SR-975 The ticket also contains information on how to fix it. > Hi, > > this might be a case of user error but I can’t use the latest builds to do > anything (on OSX). > > Trying to do a swift build results in the following - > > $

[swift-users] is inheritdoc available in swift?

2016-03-21 Thread Maciej Madaj via swift-users
Hi! I’m developing SDK for iOS, written purely in Swift - and I wonder is there a way to use something similar to inheritdoc like in Java? Possible use case: documentation stored in protocol which later on will be accessible in objects confronting protocol: protocol test { /** It does the magic!

[swift-users] Latest builds broken?

2016-03-21 Thread Michael Petersen via swift-users
Hi, this might be a case of user error but I can’t use the latest builds to do anything (on OSX). Trying to do a swift build results in the following - $ /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2016-03-16-a.xctoolchain/usr/bin/swift-build dyld: Library not loaded: @rpath/libsw

[swift-users] generic *= operator

2016-03-21 Thread Jan E. Schotsman via swift-users
Hello, I can define a custom *= operator like this: func *=( inout lhs:UInt32, rhs:Float )->UInt32 { lhs = UInt32( roundf( Float(lhs)*rhs ) ) } but my attempts to make this generic have failed. I would like something like func *=( inout X, rhs:Y)-> X {