Brandon Brown
04/20/2022, 2:38 PMlucee.runtime.Component how do I access a variable set in the variables scope from inside of that CFC? I tried get but it is deprecated and will return nulldeactivateduser
04/20/2022, 3:49 PMbdw429s
04/20/2022, 4:20 PMbdw429s
04/20/2022, 4:20 PMbdw429s
04/20/2022, 4:20 PMfunction spy() {
return variables;
}
c = new Component();
c.spy = spy;
dump( c.spy() )
and boom, you've dumped out the private variables scope of that CFCbdw429s
04/20/2022, 4:21 PMvariables scope will change to the variables scope of the CFC it now lives in.bdw429s
04/20/2022, 4:22 PMvariables scope of the location it was declared due to lexical scoping rules.