Re: Can't coerce to string

"Brian Alliet" <[email protected]>
Newsgroups gmane.comp.java.xwt.core
Message-ID <008d01c406eb$4aea8060$6601a8c0@brian>
Charles Goodwin wrote:
> You lost me.  So objects do have a unique id, but it's not a string...
> and if you then try to print out said object, it throws up the error?

Right. There is no way to get a unique string from an object. If you try to
turn an object into a string somehow an exception is thrown rather than
returning a possibly non-unique string.

> If so, I'm not convinced it is working like that as I'm encountering
> errors using boxes/js-objects as keys in a hash table without
> involving
> them in any manner that might otherwise require them to be recognised
> as
> a string.

Interesting. Does one of the test cases in the bug report demonstrate this?
I'll take a look at it in a few hours.

-Brian
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.