IsNumeric("NaN") = Yes

IsNumeric("NAN") = No

#("one" is "ONE")# = Yes

#("NaN" is 1)# = No

<cfset x = "NaN">
#(x is 1)# = Exception

So we've got a magic value that cannot be assigned to a variable.  Great.

Not only is "NaN" completely undocumented, but it's completely inconsistent.
By and large, CF is case-insensitive - so now we've got a case-sensitive,
undocumented value which we cannot safely set variables to.  This includes
variables that are user-entered.

Roland

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Sean Corfield
Sent: Wednesday, June 22, 2005 11:17 AM
To: [email protected]
Subject: Re: [CFCDev] OT: "NaN" is a reserved word in cf?

On 6/22/05, Roland Collins <[EMAIL PROTECTED]> wrote:
> Does anyone else find this frightening?

No.

What does isNumeric("NaN") return?

> Does anyone know where the link to report CF bugs went?

http://www.macromedia.com/go/wish
-- 
Sean A Corfield -- http://corfield.org/
Team Fusebox -- http://fusebox.org/
Got Gmail? -- I have 50, yes 50, invites to give away!

"If you're not annoying somebody, you're not really alive."
-- Margaret Atwood


----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email to
[email protected] with the words 'unsubscribe cfcdev' as the subject of the
email.

CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting
(www.cfxhosting.com).

CFCDev is supported by New Atlanta, makers of BlueDragon
http://www.newatlanta.com/products/bluedragon/index.cfm

An archive of the CFCDev list is available at
www.mail-archive.com/[email protected]







----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email to 
[email protected] with the words 'unsubscribe cfcdev' as the subject of the 
email.

CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting 
(www.cfxhosting.com).

CFCDev is supported by New Atlanta, makers of BlueDragon
http://www.newatlanta.com/products/bluedragon/index.cfm

An archive of the CFCDev list is available at 
www.mail-archive.com/[email protected]


Reply via email to