I was refering to the different of argument reference between named and un named arguments
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Taco Fleur Sent: Thursday, July 15, 2004 4:12 PM To: CFAussie Mailing List Subject: [cfaussie] Re: super.method() First, always declare your required arguments first and optional last. doFunc(arg1, arg2, arg4) <cfargument name="arg1" /> <cfargument name="arg2" /> <cfargument name="arg3" /> Would mean that arg3 gets the value of arg4, this is when you probably should use named parameters, i.e. doFunc(arg1 = 'this', arg2 = 'and still', arg4 = 'that') <cfargument name="arg1" /> <cfargument name="arg2" /> <cfargument name="arg4" /> Then you would get the desired result.. -----Original Message----- From: Steve Onnis [mailto:[EMAIL PROTECTED] Sent: Thursday, 15 July 2004 4:10 PM To: CFAussie Mailing List Subject: [cfaussie] Re: super.method() Then you have to set a cfargument for every possible variable that comes in to your cfc What is something isnt required and doesnt get passed in? doFunc(arg1, arg2, arg3, arg4) the third argument isnt required, and cause it isnt required, it may not get passed in <cfargument name="arg1" /> <cfargument name="arg2" /> <cfargument name="arg3" /> <cfargument name="arg4" /> I then call the function like this doFunc(arg1, arg2, arg4) now the cfc looks at the arguments and goes, "hey i only have 3 arguments, so I guess the last one is missing" and then it makes arguments.arg3 actually the value of arg4 Correct me if i am wrong about how that would work Steve -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Mark Stanton Sent: Thursday, July 15, 2004 3:43 PM To: CFAussie Mailing List Subject: [cfaussie] Re: super.method() Yeah - like Taco said... In the case of: <cfset foo = someObject.bar(arg1, arg2, arg3)> ...the value of #arg1# would be assigned into whatever your first <cfargument> was within the bar() function. When you do it this way the order of the items within () and the <cfargument> statements becomes really important. -- Mark Stanton Gruden Pty Ltd http://www.gruden.com --- You are currently subscribed to cfaussie as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] Aussie Macromedia Developers: http://lists.daemon.com.au/ --- You are currently subscribed to cfaussie as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] Aussie Macromedia Developers: http://lists.daemon.com.au/ Register now for the 3rd National Conference on Tourism Futures, being held in Townsville, North Queensland 4-7 August - www.tq.com.au/tfconf --- You are currently subscribed to cfaussie as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] Aussie Macromedia Developers: http://lists.daemon.com.au/ --- You are currently subscribed to cfaussie as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] Aussie Macromedia Developers: http://lists.daemon.com.au/
