Add 15 static overloads of IO.print in builtin/io.wren and src/wren_io.c, each delegating to a new private printList_ method that iterates over a list of objects. Update all benchmark and test files to use the new multi-argument syntax, removing explicit .toString calls and string concatenation. Add a comprehensive test/io/print.wren verifying single-argument return value, multi-argument null return, and concatenation of up to 16 arguments.
15 lines
183 B
Plaintext
15 lines
183 B
Plaintext
class Foo {
|
|
static sayName {
|
|
IO.print(Foo)
|
|
}
|
|
|
|
sayName {
|
|
IO.print(Foo)
|
|
}
|
|
|
|
static toString { "Foo!" }
|
|
}
|
|
|
|
Foo.sayName // expect: Foo!
|
|
(new Foo).sayName // expect: Foo!
|