jeudi 2 juillet 2015

Is there a way to dynamically instantiate a class type

I would like to do something on the lines of (pseudo code):

let class_name = "MyClass"
let RealClass = class_name()

I am familiar with http://ift.tt/1hBemmE





Aucun commentaire:

Enregistrer un commentaire