Merge branch 'add-read-string' of git://github.com/pwoolcoc/wren into pwoolcoc-add-read-string
Conflicts: builtin/io.wren src/wren_io.c
This commit is contained in:
@@ -79,6 +79,11 @@ class IO {
|
||||
return obj
|
||||
}
|
||||
|
||||
static read(prompt) {
|
||||
IO.write(prompt)
|
||||
return IO.read
|
||||
}
|
||||
|
||||
static writeObject_(obj) {
|
||||
var string = obj.toString
|
||||
if (string is String) {
|
||||
|
||||
Reference in New Issue
Block a user