On Tue, Jul 24, 2012 at 6:27 AM, Andy Wu <[email protected]> wrote:

>  No it doesn't. If it did then it would have to do so in order of
> precedence, searching for a cfc of that name first and I can imagine it
> getting ugly if you accidently name clashed.
>

Totally understand and figured that was the case -- thanks for confirming.

Just so I'm totally clear, this means for java objects you have to use
CreateObject() instead of new.

Semi-related question -- in a script-based CFC if I use import does that
need to go above the component { or can it go inside component { but before
the functions?

So can I do:

import foo.bar.baz;

component {
...


or:

component {
    import foo.bar.baz;


And I'm assuming if I do import outside functions, that's available inside
the functions?

Thanks.

-- 
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