Title: Message
Can you show an example of this?
 
Are you talking only with web services? (the only case that I know of where CFPROPERTY actually "matters" for anything other than meta data).  But, even then -- how does the use of "this" effect that?
 
 
 
 
 
 
 
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]On Behalf Of Chris Stoner
Sent: Wednesday, July 30, 2003 1:53 PM
To: [EMAIL PROTECTED]
Subject: Re: [CFCDev] "this" scope vs. unnamed

im not talking about the return type, im talking about <cfargument name="obj_person" type="person">
 
setting the type to a cfc name will validate that the incoming variable is a person object.  It does this by looking at its this data and its cfproperty data.  If whats in the this scope doesnt match what is in the cfproperty tags it will throw an error because it doesnt think whats being passed as an argument is actually that type of object.
 
 
----- Original Message -----
Sent: Wednesday, July 30, 2003 4:42 PM
Subject: RE: [CFCDev] "this" scope vs. unnamed

Eh? If you say returnType="someCFC" that has no relation at all to the use of This scoped data. It's completely separate. As long as you do
 
<cfreturn createObject("component","someCFC")>
 
then a method with returnType="someCFC" will be happy. Wether you use This or not.
 

=======================================================================
Raymond Camden, ColdFusion Jedi Master for Mindseye, Inc
Member of Team Macromedia

Email    : [EMAIL PROTECTED]
Blog     : www.camdenfamily.com/morpheus/blog
Yahoo IM : morpheus

"My ally is the Force, and a powerful ally it is." - Yoda

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Chris Stoner
Sent: Wednesday, July 30, 2003 2:39 PM
To: [EMAIL PROTECTED]
Subject: Re: [CFCDev] "this" scope vs. unnamed

My biggest concern with not using this is that you lose the ability to validate as an object type (which we are doing now).  Such as if you set a function argument to a type="your specific object"  and are not using the this scope you get an error (and rightfully so).  Have you found a way around this, other then creating dummy values in the this scope for validation?
 
 

Reply via email to