On February 15, 2016 at 17:15:26, Lutfullah Tomak 
(tomaklu...@gmail.com(mailto:tomaklu...@gmail.com)) wrote:

> Shouldn't it be if you escaped
>  
> julia> module X
> macro p(y)
> esc(quote
> println($y)
> end)
> end
> macro q(y)
> quote
> println(:($($y)))
> end
> end
> end
> X
>  
> julia> using X
>  
> julia> test = "Hello, world"
> "Hello, world"
>  
> julia> @X.p(test)
> "Hello, world"
>  
> julia> @X.q(test)
> Hello, world

Hmm…interesting.

BTW, I finally went ahead and filed this: 
https://github.com/JuliaLang/julia/issues/15085

Reply via email to