Is this valid syntax for accessing CFFUNCTION return

2003-12-29 Thread stas
If a function returns a complex data type as a result, say a struct, can I shorthand it like this? cfset myVar = myFunc().struct_key That is, I've tested this to work, but I want know if this is the official behavior. Thanks! [Todays Threads] [This Message] [Subscription] [Fast

RE: Is this valid syntax for accessing CFFUNCTION return

2003-12-29 Thread Dave Watts
If a function returns a complex data type as a result, say a struct, can I shorthand it like this? cfset myVar = myFunc().struct_key That is, I've tested this to work, but I want know if this is the official behavior. I don't really know if I'd call it official, but it it well-known

RE: Is this valid syntax for accessing CFFUNCTION return

2003-12-29 Thread Barney Boisvert
a function call except another method call, preferring to assign the result to a temp variable first. Cheers, barneyb -Original Message- From: stas [mailto:[EMAIL PROTECTED] Sent: Monday, December 29, 2003 10:42 AM To: CF-Talk Subject: Is this valid syntax for accessing CFFUNCTION

Re: Is this valid syntax for accessing CFFUNCTION return

2003-12-29 Thread stas
Thanks, David, great point about referencing the result multiple times. I just thought to myself : Damn, I'm good when I discovered this. - Original Message - From: Dave Watts To: CF-Talk Sent: Monday, December 29, 2003 1:58 PM Subject: RE: Is this valid syntax for accessing

Re: Is this valid syntax for accessing CFFUNCTION return

2003-12-29 Thread stas
Got it... I am yet to dabble with CFCs. Thank you. - Original Message - From: Barney Boisvert To: CF-Talk Sent: Monday, December 29, 2003 1:56 PM Subject: RE: Is this valid syntax for accessing CFFUNCTION return That'll work fine for structs and objects, but won't for arrays.In other