create. Create an object

^reflection:create[class name;constructor name]
^reflection:create[class name;constructor name;param;eters]
^reflection:create[ $.class[class name] $.constructor[constructor name] ;param;eters]   [3.4.5]
^reflection:create[ $.class[class name] $.constructor[constructor name] $.arguments[ $.1[param] $.2[eters] ] ]   [3.4.5]


Creates an object of a class with the specified name by calling a constructor with the specified name.
This method can be useful if you need to create an object of the class which name you have in a variable.
Hash keys values are ignored when parameters are specified as hash, parameters are passed in the order they where added in hash.

Note: in this method you can not specify more than 100 parameters.




Copyright © 1997–2017 Art. Lebedev Studio | http://www.artlebedev.com Last updated: 27.02.2017