Prev | Current Page 852 | Next

L. McColl-Sylvester and F. Ponticelli

"Professional haXe and Neko"


Chapter 16: haXe Advanced Topics
465
Table 16-1
Static Method Description
callMethod(o:Dynamic, func:Dynamic,
args:Array) : Dynamic
Invokes a method with the passed object as
scope and an array of values as arguments.
compareMethods(f1:Dynamic, f2:Dynamic) :
Bool
Returns true if f1 and f2 are references to
the same static method or to the same method
of the same instance.
copy(o:T) : T Creates a clone of the passed object. The
function is not recursive.
deleteField(o:Dynamic, f:String) : Bool Removes the field from the object. This is not
the same as assigning null to the field.
empty() : { } Creates an empty object. This object doesn??™t
instantiate any concrete class.
field(o : Dynamic, field:String) :
Dynamic
Returns the field of the object or null if it
does not exist. If the field is a function,
remember that once extracted the original
instance scope may be lost.
fields(o:Dynamic) : Array Returns an array of strings containing the
names of the fields of the passed object.


Pages:
840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864