dynamical. Getting method's call type

^reflection:dynamical[]
^reflection:dynamical[class]

^reflection:dynamical[object]

Without the parameter the method returns true if the calling method was called dynamically and returns false if the calling method was called statically.

With the parameter the method returns
true if an object was passed and returns false if a class was passed.

^reflection:dynamical[] may be useful inside the methods when you need to know if these methods were called-dynamically or statically.



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