Oct. 23, 2016
7:21 a.m.
Iâve also described the question with examples on SO: https://stackoverflow.com/questions/40200546/conditionally-skip-a-method-wit...
On 22 Oct 2016, at 23:13, Yuriy Tymchuk <yuriy.tymchuk@me.com> wrote:
Hi.
Imagine I have method a: and I want to skip the execution (return self or nil or whatever) when a: is evaluated with parameter 0. I have tried to add a meta link which will run instead of the method with a condition, but the condition did not work⦠I have tried to implement the metallic method to do nothing if the arg is 0 otherwise to perform the method, but I end up with an infinite loopâ¦
Did anybody do something like that already? Any suggestions?
Uko