uqbar-project / wollok

Wollok Programming Language
GNU General Public License v3.0
60 stars 16 forks source link

Anonymous objects are not printable #765

Closed flbulgarelli closed 8 years ago

flbulgarelli commented 8 years ago

It would be nice to make objects defined in repl implement toString. Otherwise you see this error:

>>> object {  var x = 3   }
wollok.lang.MessageNotUnderstoodException: anonymousObject does not understand message toString()
    at  [/__synthetic0.wpgm:3]
    at  [/__synthetic0.wpgm:3]
        ....
matifreyre commented 8 years ago

We can close this one, right?

PalumboN commented 8 years ago

https://github.com/uqbar-project/wollok/blob/dev/org.uqbar.project.wollok.tests/src/org/uqbar/project/wollok/tests/sdk/ObjectTest.xtend#L37

Yes!