I am trying to make a value that does the following
var = :x1 @replace_name var = 4
I am trying to start to figure this out by doing a macro like this:
macro repname(y,body) body.args = y esc(body) end
To try and get the expression
@repname :y x = 4 > y = 4
But I can’t even do this! Only
@repname y x = 4 works.
Any help in this metaprogramming problem is appreciated. Thanks.