Class or struct from string? http://inessential.com/2015/07/20/swift_diary_1_class_or_struct_from_str …
@jckarter @danielpunkass @owensd @brentsimmons Can we rely on it finding classes going forward?
-
-
@mjtsai@danielpunkass@owensd@brentsimmons Yeah, all Swift classes get registered with the ObjC runtime. - View other replies
-
@jckarter Wow, that is super cool. Thanks for clarifying. -
@mjtsai@jckarter Indeed, very cool. Am I misunderstanding modules, shouldn’t po NSClassFromString("http://Swift.Int ") Work? It Nils - View other replies
-
@danielpunkass@mjtsai@jckarter int is a struct not a class. ;) -
-
-
@mjtsai@danielpunkass@owensd@brentsimmons One limitation: classes with generic heritage won't be registered until they're used from Swift
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
Brent Simmons
David Owens II
Michael Tsai
Daniel Jalkut
Joe Groff