Re: scopes, templates and UFCS

2019-04-03 Thread matthias
The other `dump` is in the sugar module. Since I couldn't see all your code before I wasn't sure if it was coming from there or something you wrote. Either way the effect seems to be the same, glad you got it figured out!

Re: scopes, templates and UFCS

2019-04-03 Thread zevv
Indeed, charlie was mispasted, fixed that. Thanks

Re: scopes, templates and UFCS

2019-04-03 Thread matthias
I think you pasted the wrong code for charlie.nim. But anyway, it's a limitation of the method call syntax. See [https://nim-lang.github.io/Nim/manual.html#templates-limitations-of-the-method-call-syntax](https://nim-lang.github.io/Nim/manual.html#templates-limitations-of-the-method-call-syntax)

scopes, templates and UFCS

2019-04-03 Thread zevv
Given the following three small source files below, why does the call c.dump() generate an error (attempting to call undeclared routine: 'dump'), but is it ok if I change this to dump(c)? alpha.nim: import bravo bravo() Run bravo.nim: import