Combining func reference behavior [Answered]
If i combine func3 += func1 and func3 += func2 and then lets say func1 += someMethod Will func3 also have it added?
10 Replies
Well, not directly
But indirectly yes
Like if you removed func1 from the chain subsequently then invoking func3 will not result in a call to someMethod
Exactly what I was hoping for
Though if you did func3 -= someMethod would it be removed from func1 also?
No
Is it is more like sets. The func3 set has two sets in it func1 and func2, and then func1 is a set with someMethod in it?
So removing someMethod from func3 wouldn't work because it's set is just func1 and func2
but calling func3 will call everything in its sub sets?
Orannis#3333
REPL Result: Success
Console Output
Compile: 629.132ms | Execution: 69.840ms | React with ❌ to remove this embed.
Yes, think of it as a graph
See how modifying
combined1and2
didn't affect combinedAll3
?ah yeah
I'm going to assume this is done
✅ This post has been marked as answered!