>under certain conditions rounded a number the wrong way.
I thought that was great: it made it fun trying to show those millions of customers 
there invoice for 12.99 when CF was convinced they all owed 13.00

Russell

-----Original Message-----
From: Rich Wild [mailto:r.wild@;e-mango.com]
Sent: 18 October 2002 11:45
To: '[EMAIL PROTECTED]'
Subject: RE: [ cf-dev ] CF "Feature"


> I don't mind them, they give CF character

hmmm. like how pre-CF5 numberformat under certain conditions rounded a
number the wrong way. Oh how we laughed at how characterful CF was back then
when we were implementing it into a large scale auditing application. not.

;)

> -----Original Message-----
> From: Russell Brown [mailto:russell.brown@;Freeserve.com]
> Sent: 18 October 2002 11:55
> To: [EMAIL PROTECTED]
> Subject: RE: [ cf-dev ] CF "Feature"
> 
> 
> I hate to say this, I'll be flamed I know but : There are a 
> whole bunch of non-intuitive and bizarre behaviours in CF ( 
> as there are in any language ) but they can all be avoided 
> with a little experience and reading the docs ( for instance 
> ListGetAt ignores empty list elements, you cannot safely lock 
> a cfobject in a shared scope, YES is TRUE is 1 etc etc etc ). 
> I don't mind them, they give CF character
> 
> Russell
> 
> -----Original Message-----
> From: Kola Oyedeji [mailto:kola.oyedeji@;iclployalty.com]
> Sent: 18 October 2002 11:49
> To: [EMAIL PROTECTED]
> Subject: RE: [ cf-dev ] CF "Feature"
> 
> 
> Spike
> 
> Just to add to that. It seems silly to me that 0 can evaluate to false
> but then compareNoCase returns 0 if the strings match (which could be
> regarded as true) so..
> 
> <cfif compareNocase( string1, string2) >
> 
> .
> 
> </cfif>
> 
> Is slightly misleading as you would expect that if they match, the if
> block will be executed but this is not the case (assuming the strings
> are the same)
> 
> Kola
> 
> >> -----Original Message-----
> >> From: Spike [mailto:spike@;prisma-it.com]
> >> Sent: 18 October 2002 11:31
> >> To: [EMAIL PROTECTED]
> >> Subject: RE: [ cf-dev ] CF "Feature"
> >> 
> >> erm...
> >> 
> >> compareNocase() returns 0 (boolean false)if the strings 
> are identical
> >> and returns -1 or 1 (boolean true) otherwise.
> >> 
> >> It doesn't seem too silly to me to say that "Yes" isn't the same as
> "1".
> >> 
> >> Spike
> >> 
> >> Stephen Milligan
> >> Team Macromedia - ColdFusion
> >> Co-author 'Reality Macromedia ColdFusion MX: Intranets and Content
> >> Management'
> >> http://spikefu.blogspot.com
> >> 
> >> > -----Original Message-----
> >> > From: Rich Wild [mailto:r.wild@;e-mango.com]
> >> > Sent: 18 October 2002 12:05
> >> > To: '[EMAIL PROTECTED]'
> >> > Subject: RE: [ cf-dev ] CF "Feature"
> >> >
> >> >
> >> > it happens in MX as well, also with this code:
> >> >
> >> > <cfif comparenocase("yes", "1")>
> >> >          true
> >> > <cfelse>
> >> >          false
> >> > </cfif>
> >> >
> >> > which is just plain silly.
> >> >
> >> > as far as I know its always done this though.
> >> >
> >> > > -----Original Message-----
> >> > > From: Matt Horn [mailto:matt.horn@;mediatelgroup.co.uk]
> >> > > Sent: 18 October 2002 11:19
> >> > > To: [EMAIL PROTECTED]
> >> > > Subject: Re: [ cf-dev ] CF "Feature"
> >> > >
> >> > >
> >> > > we use 5 at the moment
> >> > >
> >> > > and yes I did get the window solved
> >> > >
> >> > > made a workaround .. PPk told me you cant create an empty
> >> > > window object
> >> > >
> >> > >
> >> > > At 11:19 18/10/02 +0100, you wrote:
> >> > > >hmmmm scary....
> >> > > >
> >> > > >Is that an MX feature or a CF "all versions" feature?
> >> > > >
> >> > > >Stephen
> >> > > >PS. Did you get your JS window object problem sorted?
> >> > > >
> >> > > >----- Original Message -----
> >> > > >From: "Matt Horn" <[EMAIL PROTECTED]>
> >> > > >To: <[EMAIL PROTECTED]>
> >> > > >Sent: Friday, October 18, 2002 11:12 AM
> >> > > >Subject: [ cf-dev ] CF "Feature"
> >> > > >
> >> > > >
> >> > > > > Something of interest one of our developers found :
> >> > > > >
> >> > > > >
> >> > > > >
> >> > > --------------------------------------------------------------
> >> > > ------------
> >> > > >-------------
> >> > > > > How do you think the following statement will be
> >> > resolved: <cfset
> >> > > > > var1 = "Yes">
> >> > > > >
> >> > > > > <cfif var1 EQ 1>
> >> > > > >                  true
> >> > > > > <cfelse>
> >> > > > >                  false
> >> > > > > </cfif>
> >> > > > > You would think that it would return false (I certainly
> >> > > did), instead it
> >> > > > > returns true!
> >> > > > > Cold Fusion does a (not so) clever boolean conversion on
> >> > > the string "Yes"
> >> > > > >
> >> > > > > Even if you attempt to cast the 1 as a string "1" in
> >> > the if: <cfif
> >> > > > > var1 EQ "1">
> >> > > > >                  true
> >> > > > > <cfelse>
> >> > > > >                  false
> >> > > > > </cfif>
> >> > > > > Still true!
> >> > > > >
> >> > > > > The only way to get around this is to do an extra check
> >> > > of IsNumeric():
> >> > > > > <cfif IsNumeric(var1) AND var1 EQ 1>
> >> > > > >                  true
> >> > > > > <cfelse>
> >> > > > >                  false
> >> > > > > </cfif>
> >> > > > > Then you get false (hurray!).
> >> > > > >
> >> > > --------------------------------------------------------------
> >> > > ------------
> >> > > >----------------------------
> >> > > > >
> >> > > > > Matt Horn
> >> > > > > Senior Web Applications Developer
> >> > > > > MediaTel Group
> >> > > > > 84-86 Regent Street
> >> > > > > London
> >> > > > > W1B 5AJ
> >> > > > > Tel: +44(0)20 7439 7575
> >> > > > > Fax: +44(0)20 7734 0940
> >> > > > >
> >> > > > > www.MediaTelGroup.co.uk
> >> > > > >
> >> > > > > MediaTel Group - Maximising efficiency across the entire
> >> > > media process.
> >> > > > >
> >> > > > > Are you the best sporting brain in the industry?
> >> > > > > Visit www.MediaTelGroup.co.uk/sportsquiz to enter our
> >> > > Sports Quiz in aid
> >> > > >of
> >> > > > > Whizz-Kidz
> >> > > > >
> >> > > > >
> >> > > > > This message is for the named recipient's use only and
> >> > may contain
> >> > > > > confidential or privileged information. If you receive
> >> > > this message in
> >> > > > > error, please immediately delete it and all copies of it
> >> > > from your system,
> >> > > > > destroy any hard copies of it and notify the sender.
> >> > You must not,
> >> > > >directly
> >> > > > > or indirectly, use, disclose, distribute, print, or copy
> >> > > any part of this
> >> > > > > message if you are not the intended recipient. Email
> >> > > communications are
> >> > > >not
> >> > > > > secure and therefore the MediaTel Group does not accept
> >> > > liability for any
> >> > > > > errors or omissions in the contents of this message which
> >> > > arise as a
> >> > > >result
> >> > > > > of email transmission. MediaTel reserves the right to
> >> > > monitor all email
> >> > > > > communications through its networks. Any views expressed
> >> > > by an individual
> >> > > > > in this email do not necessarily reflect the views of the
> >> > > MediaTel Group.
> >> > > > >
> >> > > > >
> >> > > > > --
> >> > > > > ** Archive:
> >> > > http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
> >> > > > >
> >> > > > > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> >> > > > > For additional commands, e-mail:
> >> > [EMAIL PROTECTED]
> >> > > > > For human help, e-mail: [EMAIL PROTECTED]
> >> > > > >
> >> > > > >
> >> > > >
> >> > > >
> >> > > >
> >> > > >--
> >> > > >** Archive:
> >> > > http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
> >> > > >
> >> > > >To unsubscribe, e-mail: 
> [EMAIL PROTECTED]
> >> > > >For additional commands, e-mail:
> >> > [EMAIL PROTECTED] For
> >> > > >human help, e-mail: [EMAIL PROTECTED]
> >> > >
> >> > >
> >> > > --
> >> > > ** Archive:
> >> > http://www.mail-archive.com/dev%> 40lists.cfdeveloper.co.uk/
> >> > >
> >> >
> >> > > To unsubscribe, e-mail:
> >> > [EMAIL PROTECTED]
> >> > > For additional commands, e-mail:
> >> > [EMAIL PROTECTED] For
> >> > > human help, e-mail: [EMAIL PROTECTED]
> >> > >
> >> >
> >> >
> >> > --
> >> > ** Archive:
> http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
> >> >
> >> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> > For additional commands, e-mail:
> >> > [EMAIL PROTECTED] For human help, e-mail:
> >> > [EMAIL PROTECTED]
> >> >
> >> >
> >> 
> >> 
> >> 
> >> --
> >> ** Archive:
> http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
> >> 
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >> For human help, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> -- 
> ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
> 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> For human help, e-mail: [EMAIL PROTECTED]
> 
> 
> -- 
> ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
> 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> For human help, e-mail: [EMAIL PROTECTED]
> 


-- 
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]


--
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]

Reply via email to