Re: Can't coerce to string

Charles Goodwin <[email protected]>
Newsgroups gmane.comp.java.xwt.core
Organization XWT Foundation
Message-ID <[email protected]>
I quoteth the great Tupshin:

<tupshin> charlieg: i think your mail is correct. the bug is that
putting a box in an array implicitly calls toString which it shouldn't
do

On Wed, 2004-03-10 at 21:29, Brian Alliet wrote:
> > 1) why isn't the output guarranteed to be unique?
> > 2) is it not possible for the output to be unique?
> 
> Java doesn't provide any way to get a unique string from an object. We could
> construct our own ID by assigning each box a number or something, but that
> would be ugly.
> 
> > 3) the reason people do this is because it's _very_ easy.  You're
> > taking away a powerful tool for people to use.
> 
> Not at all. org.xwt.js allows you to use any object as a key in a hashtable
> (even boxes). The only thing this takes away from you is the ability to do
> ibex.log.info("Box is: " + box) The output from this isn't very helpful
> anyway so I don't think this is a problem.
> 
> -Brian
> 
> 
> _______________________________________________
> core mailing list
> [email protected]
> http://lists.xwt.org/listinfo/core
-- 
- 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.