> On 27 Dec 2015, at 9:31 PM, Luke Howard via swift-corelibs-dev > <[email protected]> wrote: > > I’ve implemented but not extensively tested decodeValueOfObjCType(). Do we > need to support NSConcreteValue?
I started looking at NSConcreteValue (commit 1a9fe560) and decoding it is fine (notwithstanding implementing all the special cases). What’s the plan for instantiating concrete of NSValue though? * Class clusters seem impossible to implement in Swift * Factory methods are an API change * NSValue becoming concrete seems to muck up CF bridging (also, fragile base class problem) * I looked a little into using ManagedBuffer to size instances dynamically but it’s not much help by the time init() is called * A lookaside table works and is straightforward to implement, but is pretty ugly — Luke _______________________________________________ swift-corelibs-dev mailing list [email protected] https://lists.swift.org/mailman/listinfo/swift-corelibs-dev
