asteroid icon indicating copy to clipboard operation
asteroid copied to clipboard

function non-local, non-global accessible

Open lutzhamel opened this issue 1 year ago • 0 comments

The following code demonstrates a scoping bug

load system io.

function foo with x do
    if true==x do
        let a = 7.
        foo(false).
    else do
        io @println(a).
    end
end

foo(true).

The access to a in the print expression should generate an error.

lutzhamel avatar Oct 12 '24 11:10 lutzhamel