The `MPI` package contains this macro:
```Julia
macro mpi_do(mgr, expr)
    expr = Base.localize_vars(:(()->$expr), false)
    :(mpi_do($(esc(mgr)), $(esc(expr))))
end
```

This fails on the current master with
```
julia> x=1
julia> @mpi_do MPIManager() info(x)
ERROR: syntax: unhandled expr (localize (block (null) (block (= #1
(new ##1#2)) (null) #1)) x)
 in eval(::Module, ::Any) at /Users/eschnett/julia05/lib/julia/sys.dylib:-1
```

Also -- why is the second argument to `localize_vars` set to `false`?
I think this means that the arguments are not escaped -- shouldn't
they? Or is this "undone" by the explicit call to `esc` in the next
line?

-erik

-- 
Erik Schnetter <[email protected]>
http://www.perimeterinstitute.ca/personal/eschnetter/

Reply via email to