-
Special characters with backslash such as `\n` `\r` `\t` `\v` are not treated. Looks like string literals are actually just a byte stream.
* Goby
```ruby
a = "Hello\nWorld"
puts(a)
# => "He…
-
Checked with REPL for now.
* On invalid assignments, Ruby returns 'unexpected '=', expecting end-of-input' correctly, but Goby returns the right side term:
```ruby
"v" = "a" #=> a
"v" = …
-
```ruby
a = nil
puts(a)
```
Goby outputs `nill` while Ruby outputs empty line.
-
Happened to find that the following code makes Goby stop responding:
```ruby
a = "abcxyz
puts(a)
```
Just to create the test code for the error cases:
```ruby
func TestStringErrorCase(t *…
-
In #207 I already make Goby execute program with instruction set data structures by default. And in the near future current bytecode (string format) will be deprecated because we'll add some metadata …
-
The following works:
```ruby
code = []
code[100] = 'Continue'
code[101] = 'Switching Protocols'
code[102] = 'Processing'
puts(code)
```
But the following causes panic on Goby while it wo…
-
```ruby
class Foo
def bar
end
end
a = Foo.new
puts(a.bar)
```
* Goby: ``
* Ruby: empty line
-
```ruby
a = nil
puts(a)
```
Goby outputs `nill` while Ruby outputs empty line.
-
The following encounters panic `runtime: goroutine stack exceeds 1000000000-byte limit
fatal error: stack overflow` while it works on Ruby:
```ruby
module Foo
def ten
10
end
end
mo…
-
```ruby
class Foo
def bar
end
end
a = Foo.new
puts(a.bar)
```
* Goby: ``
* Ruby: empty line