I suggest reading hal helms articles about strong and dinamic typing
regards
salvatore

----- Original Message ----- From: "dickbob" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Thursday, March 16, 2006 11:09 AM
Subject: [CFCDev] How to use returntype correctly


Hi,

I've been using cfc's for a while now and all's fine, but I want to improve
my techniques so that I use them correctly.

My questions are about the returntype attribute to CFFUNCTION and the type
attribute in CFARGUMENT.

Now I'm happy with using "string", "xml", "query" etc for functions that
return a value. What I'm unsure about is when I specify a returntype for the
component name and use that also as the type in CFARGUMENT.

What are the benefits? All seems to work okay without them.

Do I need to give the full pathname to the component? Why?

How do I reconcile the fact that the pathname must be a constant value with
the path being different between the dev and live environments?

TIA,

Dickbob




----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email to [email protected] with the words 'unsubscribe cfcdev' as the subject of the email.

CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting (www.cfxhosting.com).

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



__________ Informazione NOD32 1.1445 (20060315) __________

Questo messaggio  รจ stato controllato dal Sistema Antivirus NOD32
http://www.nod32.it





----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email to 
[email protected] with the words 'unsubscribe cfcdev' as the subject of the 
email.

CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting 
(www.cfxhosting.com).

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


Reply via email to