J
jquerijero
Guest
It's a construct that allows a class to literally delegate a work outside the class implementation without passing an object. This avoids dependency. It's functionally similar to callback construct. Ex. Class A METHOD CHAR MyInfo() classB.AskAnotherClassInfo(NEW DELEGATE(MyInfo)) Class B DELEGATE SomeMethod() METHOD AskAnotherClassInfo(SomeMethod proxy) DO: var = proxy(). // will run class A's MyInfo END. Here, class B has no reference dependency on class A.
Continue reading...
Continue reading...