mna / agora

a dynamically typed, garbage collected, embeddable programming language built with Go
https://github.com/mna/agora/wiki
BSD 3-Clause "New" or "Revised" License
324 stars 27 forks source link

Print nested objects is incoherent #12

Closed mna closed 10 years ago

mna commented 10 years ago

The top-level object gets printed ok, since it is converted to its native (map) value, but the inner objects panic because runtime.object does not support conversion to String() and inner fields are not converted to native values.

mna commented 10 years ago

Object should support String() conversion, something similar to JSON.stringify, and fmt should use this (or its custom __toString()) instead of the native conversion to a map

mna commented 10 years ago

Fixed in next.