Re: Can't coerce to string

Charles Goodwin <[email protected]>
Newsgroups gmane.comp.java.xwt.core
Organization XWT Foundation
Message-ID <[email protected]>
On Wed, 2004-03-10 at 22:01, Brian Alliet wrote:
> 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.

Ok, this I understand.

What I don't understand is why a box can only be used as a key in a
hash, or as a non-unique string output.  Why not both?

I mean, why should this fail:

var hash = {};
var key = ibex.box;
hash[key] = "blah";
ibex.log.info(key);

Why is key not interpreted correctly depending on circumstance?
-- 
- Charlie

Charles Goodwin <[email protected]>
Online @ http://www.charlietech.com
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.