Open GrundleTrundle opened 7 years ago
This issue shows that emerald is more a tech demo than an actually useful tool for complex tasks. Sometimes, because something is possible does not mean that it is feasible.
This is a conceptual problem an I think the correct way to solve it is to implement the call-by-name-ALGOL-rule for parameter resolution.
That being said, it is unlikely that I will invest more work into this project, since I came to believe that while it is a pretty nice tech demo, it is not a great tool to tackle actual problems.
I understand, thanks for the response.
I've tried this on 0.16.0 and the development branch of Nim.
Here's the code:
Compiling it gives me this error:
It seems specific to passing the
thingy
parameter to the mixin. Replacingcall_mixin mixin_with_params(thingy)
withcall_mixin mixin_with_params("a string")
works fine, and I can referencethingy
in other parts of the template. Just not as a mixin parameter.