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
18
class Foo {
  construct new(value) { _value = value }
  toString { _value }
  bar=(value) {
    _value = value
    return value
  }
}

var a = Foo.new("a")
var b = Foo.new("b")
var c = Foo.new("c")

// Assignment is right-associative.
a.bar = b.bar = c.bar = "d"
System.print(a.toString) // expect: d
System.print(b.toString) // expect: d
System.print(c.toString) // expect: d