Base.call() in Julia 0.6

Thanks, I did not know about that.

I tried the piece of code you suggested but got an error: UndefVarError: M not defined

I don’t understand how I should declare the generated function there… Any idea?