Just do in your .cfc:
<cfcomponent>
variables.instance = structNew();
function setMe(me) {
variables.instance.me = me;
}
function getMe() {
return variables.instance.me;
}
</cfcomponent>
We have some components in my company written by a contractor (nobody was monitoring him too closely, argh!) which look like this, they are most dicey indeed.
Good luck,
Eric
On 10/26/05, Haikal Saadh <[EMAIL PROTECTED]> wrote:
I think the idea of adding throw() and dump() methods to
web-inf.component has been brought up, but I was just wondering, would
it be possible to decorate web-inf.component, say, onApplicationStart()?
That way, you can keep your code in your source tree, and you won't have
to modify any MM issue code.
Is this a good idea?
Seth MacPherson wrote:
> I personally enjoy using cfscript on occasion and think it would be nice if
> MM provided support in cfscript for more of their tag based methods. That
> said I have to agree with Matt. Macromedia has done little to extend their
> scripting functionality within ColdFusion besides ActionScript in CF forms.
>
> - Seth
>
>
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf
> Of Matt Woodward
> Sent: Wednesday, October 26, 2005 4:40 PM
> To: [email protected]
> Subject: Re: [CFCDev] Defining CFC using cfscript
>
> On 10/26/05, John Ottenbacher < [EMAIL PROTECTED]> wrote:
>
>> Does anyone know if MM has plans to allow development of CFC's using
>> cfscript?
>>
>
> Do you mean building CFCs entirely from script? So you'd do something like:
> <cfscript>
> component MyComponent {
> // attributes and methods here
> }
> </cfscript>
>
> I guess my question would be what advantage do you see that providing?
> I have no insight into what MM's plans are but I'd be very surprised
> to see this on the roadmap.
> --
> Matt Woodward
> [EMAIL PROTECTED]
> http://www.mattwoodward.com
>
>
> ----------------------------------------------------------
> 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).
>
> CFCDev is supported by New Atlanta, makers of BlueDragon
> http://www.newatlanta.com/products/bluedragon/index.cfm
>
> An archive of the CFCDev list is available at
> www.mail-archive.com/[email protected]
>
>
>
>
> ----------------------------------------------------------
> 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).
>
> CFCDev is supported by New Atlanta, makers of BlueDragon
> http://www.newatlanta.com/products/bluedragon/index.cfm
>
> An archive of the CFCDev list is available at www.mail-archive.com/[email protected]
>
>
>
>
--
Haikal Saadh, Applications Programmer
Teaching and Learning Support Services
K405, Queensland University of Technology, Kelvin Grove Campus
[EMAIL PROTECTED], 3864 8633
CRICOS No. 00213J
----------------------------------------------------------
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).
CFCDev is supported by New Atlanta, makers of BlueDragon
http://www.newatlanta.com/products/bluedragon/index.cfm
An archive of the CFCDev list is available at www.mail-archive.com/[email protected]
----------------------------------------------------------
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).
CFCDev is supported by New Atlanta, makers of BlueDragon
http://www.newatlanta.com/products/bluedragon/index.cfm
An archive of the CFCDev list is available at www.mail-archive.com/[email protected]
