> I wouldn't call that a pseudo constructor. I do realise thats > what has been adopted, does it make it right. No I don't believe so. > > Because technically it is not.... I do know that is what > people are saying, and for the life of me I do not know why.
Since "pseudo constructor" isn't a technical term of art used outside of CF programming, it is incorrect for you to complain about the technical accuracy of the term. "Constructor" has a specific meaning for programmers (CF and non-CF alike). "Pseudo constructor" does not. > Consider this then.. > > <cfcomponent> > ..... Set some local variables > > ..... Some private and public methods. > > </cfcomponent> > > By such definition, if we instantiate the above code and the > cfcomponent is a pseudo constructor. Then by that same > definition we would then have to say that the methods are now > a nested class. No one claims that the CFCOMPONENT tag would be part of the pseudo constructor. Just the "...set some local variables" part. That part both defines and initializes variables. In most languages, you would not do that - you'd declare class variables, but initialize them in the constructor function. I'm not a big fan of the term myself, probably because I'm reminded of CF's deficiencies when I see it. But I can't say it's "wrong", because whoever coined it for this usage could have used anything not already a technical term of art, "kwijibo", for example. Feel free to call it something else if you like, but you don't have a leg to stand on in complaining about it, and don't expect anyone to understand what you're talking about. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Training: Adobe/Google/Paperthin Certified Partners http://training.figleaf.com/ WebManiacs 2008: the ultimate conference for CF/Flex/AIR developers! http://www.webmaniacsconference.com/ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;192386516;25150098;k Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:304421 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

