I'm going to look the other issues up in the bugbase in the next few
days and see what's there but I'll address these issues here...
On Friday, Sep 27, 2002, at 02:36 US/Pacific, Benoit Hediard wrote:
> - CFC methods defined in an included file cannot really include UDF
> lib.
> Indeed, CF refuses to include twice the same UDF lib in one single
> script,
> which could be the case with two CFC included methods definition that
> use
> the same UDF lib.
Because you cannot have more than one definition of a function - which
is what happens when you include the UDF multiple times. You can't do
this in most other languages (define the same function twice) so I
don't know why you'd expect it to work in CF.
> - UDF lib cannot be included in a CFC if the UDF lib is already
> included in
> the script calling the CFC.
This is essentially the same problem as above.
> WORKAROUND : use the <cfif isDefined("oneOfTheFunctionName")><cfinclude
> template="myUDFlib.cfm"></cfif> in the CFC to test if the UDF lib has
> already be included.
Yes, that is what we do here. It also encourages you to have one
function per include file...
> I wonder if it could be possible that CF accept to include several
> times the
> same UDF lib : if it is the same file, it should not complain about it.
What if the file changes during the processing of the request?
"I have always wished that my computer would be as easy to use as my
telephone.
My wish has come true - I no longer know how to use my telephone."
-- Bjarne Stroustrup
______________________________________________________________________
Your ad could be here. Monies from ads go to support these lists and provide more
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists