On Wed, Jul 11, 2012 at 11:14 AM, Jason King <[email protected]> wrote:

> Thanks.
>
> Another question.
>
> What if, in the parent document, I call a function (function1) that
> returns a struct.
>
> <cfset fooFunc = application.foo.fooFunc(arg1=blah, arg2=blip)>
>
> Later in the document, I call another function (function2), and within
> that function(function2) I also call the same function(function1).
>
> Would I want to use the same .local for the 2nd calling of function1?
> It seems I would be creating a struct within a struct.
>

Same .local? Not sure what you're asking here. That's just a way to declare
one variable that's var scoped and not have to worry about the others since
they're all members of that struct.

You'll have to elaborate more on your concerns. There's nothing "special"
about one function in the CFC calling another function in the same CFC vs.
something outside the CFC calling it. The behavior would be the same.

-- 
Matthew Woodward
[email protected]
http://blog.mattwoodward.com
identi.ca / Twitter: @mpwoodward

Please do not send me proprietary file formats such as Word, PowerPoint,
etc. as attachments.
http://www.gnu.org/philosophy/no-word-attachments.html

-- 
online documentation: http://openbd.org/manual/
 http://groups.google.com/group/openbd?hl=en

Reply via email to