I would not think that was correct, you can still refer to the argument as Arguments.arg1 even though you do not name it when you pass it in.
Taco ... i like THIS and that... -----Original Message----- From: Steve Onnis [mailto:[EMAIL PROTECTED] Sent: Thursday, 15 July 2004 3:29 PM To: CFAussie Mailing List Subject: [cfaussie] Re: super.method() Mark They will do the same thing only as to pass in the variables. using names pairs you can access the arguments by name in the cfc. using un names pairs doesnt give you that luxury <cfset foo = someObject.bar(arg1=arg1, arg2=arg2, arg3=arg3)> in the cfc you can call Arguments.arg1 <cfset foo = someObject.bar(arg1, arg2, arg3)> in the cfc you cant call Arguments.arg1. you have to call Arguments[1] Correct? Steve -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Mark Stanton Sent: Thursday, July 15, 2004 1:38 PM To: CFAussie Mailing List Subject: [cfaussie] Re: super.method() Barry I think the point is that I can do: <cfset someObject = createObject('component','com.gruden.someObject')> <cfset arg1 = "argument 1"> <cfset arg2 = "argument 2"> <cfset arg3 = "argument 3"> <cfset args = structNew()> <cfset args.arg1 = arg1> <cfset args.arg2 = arg2> <cfset args.arg3 = arg3> And... <cfset foo = someObject.bar(argumentsCollection=args)> <cfset foo = someObject.bar(arg1, arg2, arg3)> <cfset foo = someObject.bar(arg1=arg1, arg2=arg2, arg3=arg3)> ...will all do the same thing. But if I have a call to super.bar() within the someObject.bar() I don't have this flexibility. I can ONLY use the: <cfset super.bar(arg1, arg2, arg3)> ..syntax. Its a matter a of consistency in the language. Debates about which method of passing arguments is better practice are not relevant to this thread. -- 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/
