Re: [swift-users] Customizing my custom type's appearance in the debugger

2016-06-26 Thread Jim Ingham via swift-users
The display in the variables view uses synthetic child providers: http://lldb.llvm.org/varformats.html We could hook up the Mirrors to the synthetic child providers if there is no formatter registered, but Mirrors always run code and we try not to run code for the variables view if we can

Re: [swift-users] Customizing my custom type's appearance in the debugger

2016-06-26 Thread Dmitri Gribenko via swift-users
On Sun, Jun 26, 2016 at 5:03 PM, Tim Vermeulen wrote: > I already did that, sorry for not providing any code. Take this as an > example: > > public struct Wrapper { > > private var elements: [Element] > > public init(_ sequence: > S) { > elements =

Re: [swift-users] Customizing my custom type's appearance in the debugger

2016-06-26 Thread Tim Vermeulen via swift-users
I already did that, sorry for not providing any code. Take this as an example: public struct Wrapper { private var elements: [Element] public init(_ sequence: S) { elements = [Element](sequence) } } extension Wrapper: Collection { public var

Re: [swift-users] Customizing my custom type's appearance in the debugger

2016-06-26 Thread Dmitri Gribenko via swift-users
On Fri, Jun 24, 2016 at 3:53 PM, Tim Vermeulen via swift-users wrote: > I’ve implemented a linked list. Now I’d like to be able to view the elements > of a linked list in the debugger just like with an array. In the debugger, an > array is represented like this: > > [0] =

Re: [swift-users] [swift-corelibs-dev] NSKeyValueCoding and the Swift Foundation

2016-06-26 Thread developer--- via swift-users
I have to agree with comments found at the link in this email about swift and entry level. I am a new developer just finishing school…in school we were barely getting into objective c when swift was released. From what I’ve been told, the agreement between schools and Apple doesn’t allow

Re: [swift-users] Hexadecimal floating-point literals

2016-06-26 Thread zh ao via swift-users
I think it avoids the confusion. You can use print((0xabc).beef) instead. Zhaoxin On Sun, Jun 26, 2016 at 3:50 PM, Toni Suter via swift-users < swift-users@swift.org> wrote: > Hi, > > I have a question regarding hexadecimal floating-point literals. According > to the Lexical Structure ( >

[swift-users] Hexadecimal floating-point literals

2016-06-26 Thread Toni Suter via swift-users
Hi, I have a question regarding hexadecimal floating-point literals. According to the Lexical Structure (https://developer.apple.com/library/prerelease/content/documentation/Swift/Conceptual/Swift_Programming_Language/LexicalStructure.html