swift2 - Replacement for _stdlib_getDemangledTypeName() in Swift 2.2 -
the latest release of swift 2.2 removes _stdlib_getdemangledtypename()
.
what options replace this?
i'm using in debug messages this:
let debugstr = "\(_stdlib_getdemangledtypename(self)) -> \(self.versionstring) (\(self.versioninfo))"
you can pretty descriptions of type names through string
initialiser. should suffice replacement _stdlib_getdemangledtypename
.
example:
string(self.dynamictype)
Comments
Post a Comment