mfichman / jogo

High(er) performance compiled programming language with clean, powerful syntax
MIT License
6 stars 1 forks source link

Match with strings doesn't work #73

Open mfichman opened 11 years ago

mfichman commented 11 years ago

Example:

match m {
with "foo": Io::println('foo')
with "bar": Io::println('bar')
}
mfichman commented 10 years ago

This was fixed at some point within the last year.

mfichman commented 10 years ago

This is not fixed; match expressions compare object references only (using if obj1 != obj2 goto LABEL) rather than calling the object's match method.