2013-11-23 14:55:05 -08:00
|
|
|
class Foo {
|
|
|
|
|
set(a, b, c, d, e) {
|
|
|
|
|
_a = a
|
|
|
|
|
_b = b
|
|
|
|
|
_c = c
|
|
|
|
|
_d = d
|
|
|
|
|
_e = e
|
|
|
|
|
}
|
2013-12-23 11:17:40 -08:00
|
|
|
|
2013-11-23 14:55:05 -08:00
|
|
|
write {
|
2014-01-05 12:27:12 -08:00
|
|
|
IO.print(_a)
|
|
|
|
|
IO.print(_b)
|
|
|
|
|
IO.print(_c)
|
|
|
|
|
IO.print(_d)
|
|
|
|
|
IO.print(_e)
|
2013-11-23 14:55:05 -08:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2013-12-19 07:02:27 -08:00
|
|
|
var foo = new Foo
|
2013-11-23 14:55:05 -08:00
|
|
|
foo.set(1, 2, 3, 4, 5)
|
|
|
|
|
foo.write
|
|
|
|
|
// expect: 1
|
|
|
|
|
// expect: 2
|
|
|
|
|
// expect: 3
|
|
|
|
|
// expect: 4
|
|
|
|
|
// expect: 5
|