Fixed
Details
Details
Assignee
Michael Offner
Michael OffnerReporter
Ryan Guill
Ryan GuillPriority
Fix versions
New Issue warning screen
Before you create a new Issue, please post to the mailing list first https://dev.lucee.org
Once the issue has been verified, one of the Lucee team will ask you to file an issue
Affects versions
Created 8 April 2015 at 13:04
Updated 5 May 2023 at 09:40
Resolved 10 November 2015 at 15:16
I would expect the ability to refer to static members dynamically, either the component name, the member name or both.
Examples (and errors received)
//testStatic.cfc component { static { f = () -> true; } }
//index.cfm <cfscript> c = "testStatic"; m = "f"; dump(testStatic::f()); //normal syntax, not dynamic //dump(testStatic::[m]()); //invalid identifier //dump(testStatic::"f"()); //invalid identifier //dump(testStatic::["f"]()); //invalid identifier //dump(testStatic::"#m#"()); //invalid identifier //dump([c]::f()); //Syntax Error, Invalid Construct </cfscript>
I don't necessarily expect all of those syntaxes to work, but was just trying to see if there was any way to make it work.
My preferred syntax would be that anything in brackets would be evaluated:
[c]::[m]()