well if the cfc is in the current directory as the calling template you just 
need the cfc name. As I understand it, CF will look for your cfc in the 
following order:

1) current directory of the calling cfml page
2) mapped coldfusion paths
3) custom tag directories

So keep that in mind for portability concerns

HTH

Jim

----- Original Message ----
From: J MacKay <[EMAIL PROTECTED]>
To: [email protected]
Sent: Monday, March 26, 2007 7:16:43 PM
Subject: Re: [CFCDEV] newbie questions about cfproperty and cffunction 
returntype paths

Nando 

If you're working on your own and just starting with CFCs, I think you 
can just use returntype and type ="any" - i've thought about it from a 
variety of angles, and unless you are trained in a typed language and 
using type makes a lot of sense to you, i don't think you'll get much 
benefit out of trying to use type in CF. My personal opinion here. Using 
type in certain development environments or in very complex apps can 
certainly be advantageous, but i wouldn't rubber stamp using type as a 
best practice automatically.

I've got a blog entry that explores this topic in depth if you're 
interested why i've come to this conclusion.

http://aria-media.com/blog/index.cfm/2006/10/6/To-Type-or-Not-to-Type

Nando
I am new to cfcs. In the past I've used more strongly typed
 languages. So typing does make sense to me. On the one hand I like the 
security of type checking, but I think requiring full paths makes the code less 
portable. I just wanted to get a feel for what others are doing, and more 
importantly their reasoning, before making my own decision.

Thanks for the link. I'll check it out.

Janet



-- 
        



 
Looking for earth-friendly autos? 
 Browse Top Cars by "Green Rating" at Yahoo! Autos' Green Center.  

You are subscribed to cfcdev. To unsubscribe, please follow the instructions at 
http://www.cfczone.org/listserv.cfm

CFCDev is supported by:
Katapult Media, Inc.
We are cool code geeks looking for fun projects to rock!
www.katapultmedia.com

An archive of the CFCDev list is available at 
www.mail-archive.com/[email protected]




You are subscribed to cfcdev. To unsubscribe, please follow the instructions at 
http://www.cfczone.org/listserv.cfm

CFCDev is supported by:
Katapult Media, Inc.
We are cool code geeks looking for fun projects to rock!
www.katapultmedia.com

An archive of the CFCDev list is available at 
www.mail-archive.com/[email protected]

Reply via email to