libwren-sys 0.1.0

FFI bindings for the wren embedded programming language
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{
  var f = null

  {
    var a = "a"
    f = Fn.new { System.print(a) }
  }

  {
    // Since a is out of scope, the local slot will be reused by b. Make sure
    // that f still closes over a.
    var b = "b"
    f.call() // expect: a
  }
}

// TODO: Maximum number of closed-over variables (directly and/or indirect).