tomhrr / cosh

Concatenative command-line shell
BSD 3-Clause "New" or "Revised" License
133 stars 2 forks source link

Function scoping issue #115

Closed tomhrr closed 5 months ago

tomhrr commented 1 year ago
: key-hash
    r; lst var; lst !;
    h() hsh var; hsh !;
    lst @@; [hsh @; swap; 0 set; drop] for;
    hsh @;
    ,,
$ 10 range; key-hash;
...: anonymous function environment has gone out of scope

It's not clear why this error is happening, given that lst @; clone; works as expected, and that's what @@ is supposed to map to.

tomhrr commented 5 months ago

Resolved indirectly by way of some other change.