For AS3, I think it is fine to use the new operator in general - I was
clutching-at-straws as to why something might be different in your
scenario (largely because I know in AS2 there was a difference between
and new String() as there was the concept of primitives and object
forms of the string
PROTECTED] On
Behalf Of Peter Farland
Sent: Thursday, April 05, 2007 11:23 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: question about string equality
For AS3, I think it is fine to use the new operator in general - I was
clutching-at-straws as to why something might be different
/a;);
- Gordon
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Peter Farland
Sent: Thursday, April 05, 2007 8:37 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: question about string equality
Oops, I deleted part of a sentence
=== I believe it doesn't affect strings.
if name == null and category = new String() then they are not == or ===,
but their valueOf may be
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of simonjpalmer
Sent: Wednesday, April 04, 2007
4 matches
Mail list logo