Re: Can't coerce to string

Charles Goodwin <[email protected]>
Newsgroups gmane.comp.java.xwt.core
Organization XWT Foundation
Message-ID <[email protected]>
On Thu, 2004-03-11 at 01:55, Charles Goodwin wrote:
> That should be ibex.log.info(key + "");

In fact, ignore the rest.  I got the wrong end of the stick.

The issue is that ibex.log.info(box/js-object) works fine but
ibex.log.info(box/js-object + "") doesn't.

I can see the logic behind that.  But I don't think that killing things
with an exception is the right way to go.

Tupshin hacked up a patch that turns the exception into a warning which
is a better approach.  This means that people won't be puzzled if they
do something like this when trying to log information, whilst protecting
them in the event that they use it to do something silly.
-- 
- 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.