On Thursday, Jan 30, 2003, at 10:17 US/Pacific, jon hall wrote:
> Any chance of cfc's implementing built in set/get methods on
> properties, like c# and the javabean framework?

Interesting idea - submit it to the wishlist!

Seriously, that's the way to get your voice heard.

Personally, most of my get/set methods tend to do more than just read / 
write the underlying property but I can see how it might be a useful 
shorthand for a lot of people. Perhaps extending cfproperty to allow 
you to specify that a property really represent a "bean":

        <cfproperty name="foo" bean="true" type="string">

would then be shorthand for:

        <cffunction name="getFoo" returntype="string">
                <cfreturn foo>
        </cffunction>
        <cffunction name="setFoo">
                <cfargument name="newFoo" type="string" required="true">
                <cfset foo = arguments.newFoo>
        </cffunction>

But the unnamed (internal) scope issue would need tidying up first 
before this could be implemented.

Sean A Corfield -- http://www.corfield.org/blog/

"If you're not annoying somebody, you're not really alive."
-- Margaret Atwood

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to