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
class Foo {
  construct named() { _field = "named" }
  construct other() { _field = "other" }

  toString { _field }
}

System.print(Foo.named()) // expect: named
System.print(Foo.other()) // expect: other

// Returns the new instance.
var foo = Foo.named()
System.print(foo is Foo) // expect: true
System.print(foo.toString) // expect: named