I tried to reproduce this and haven't been able to. If this still
On Mon, Oct 8, 2012 at 7:01 PM, Postlethwaite <
post.b...@gmail.com> wrote:
> I was hacking around trying to get a nice syntax to turn modules into self
> contained testblocks so I could do
> @testblock testname begin
> a = 3
> @assert funtest(a) == 6
> end
>
> and it would automatically load up Base.* and my module file and provide
> stdout printing of test name etc.
> I like the idea of modules being able to load up different environments.
>
> Anyway I am getting seg faults with the code below.
>
> tstfile.jl
> macro testblock(name)
> quote
> module $name
> import Base.*
> a = 2
> end
> end
> end
>
> running
>
>>julia tstfile.jl
>
> results in:
>
> Segmentation fault (core dumped)
>
>