Open opeongo opened 1 year ago
I would say no.
The first method apple1 is a scripted object, apple2 and apple3 only returns the object apple1, which doesn't give them object scope within themselves in return.
Interesting problem, forced me to think for a minute.
Closed: works as expected
Scripted objects are method declarations that return a reference to a namespace. Typically they are coded as:
But what about method declaration that return a namespace reference indirectly. Do these also count as scripted objects?
Do we need to adjust the code that detects if a method is a scripted object to detect all of these other cases?