On 6/21/05, Nathan Dintenfass <[EMAIL PROTECTED]> wrote:
> I still don't understand the point of that in relation to this
> discussion, however -- Sean, surely you are not saying the different
> behaviors of structCount() in CF6 and CF7 is "expected behavior"??

No, I'm just saying that relying on structCount(arguments) is unwise
since arguments isn't really a struct. Similarly, arrayLen(arguments)
can have surprising values too since arguments isn't really an array
either.

That said, the CF7 (and CF6.1) LiveDocs do specifically give examples
of using arrayLen() and structCount() on arguments so there is clearly
*some* expectation that they give vaguely sensible answers (and they
do in most cases).

http://livedocs.macromedia.com/coldfusion/7/htmldocs/00001008.htm

However, there are quite a few caveats - and notice the very strange
recommendation for testing if unnamed arguments are passed:
structKeyExists(arguments,"3") - using the index of the unnamed
arguments...

Since this is an observable change between CF6.1 and CF7, logging it
as a regression bug is probably a good idea.

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]


Reply via email to