Issues

Select view

Select search mode

 
38 of 38

Can't call lambda that exists in static scope

Description

5.4.4.38

Details

Assignee

Reporter

Labels

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

Priority

Created 13 February 2024 at 20:39
Updated 31 May 2024 at 12:27

Activity

Show:

Pothys - MitrahSoft27 May 2024 at 15:18

I’ve checked this ticket still an issue with Lucee latest version 6.1.0.158-SNAPSHOT.

Pothys - MitrahSoft4 March 2024 at 15:54
Edited

It depends on the syntax using to call the lambda in the static scope.

While trying to access the lambda using test::func(); lucee search the func named udf in the static scope (not a static member) and throws error like .....provide the error from the lucee here.....

So we need to use the syntax to call the member from the static scope

dump(test::func) // works

x = test::func;
dump(x()) // call the lambda function

dump((test::func)());

So this is way lucee is working now. I moved the ticket to Incompatibility from bug.
Any thought on this.

Flag notifications