Support argumentCollection in built-in functions

Description

Lucee supports named arguments in built-in function calls but does not support argumentCollection:
```
x = abs( number = -42 ); // supported
x = abs( argumentCollection =
{ number = -42 }
); // not supported
```
This would be useful for dynamically creating argument lists for built-in functions that take optional arguments.

Note: neither form is supported by ACF.

Activity

Charles Robertson 
21 January 2023 at 15:54
(edited)

According to your link:

BIFs implemented in CFML

These functions don’t seem to do what your comment is describing, but instead use the attribute collection of the function’s tag equivalent, as a pass through. It doesn’t seem possible to pass a BIF’s params in, via the argumentCollection param, except for:

queryExecute()

In this BIF, it allows you to use an options param, in the same way, one would use the argumentCollection

However, I am very excited by the fact that Lucee could have full BIF argumentCollection support, in the very near future.

Jamie Jackson 
18 October 2018 at 16:57

One thing to note: BIFs implemented in CFML are compatible with `argumentCollection`, while those implemented in Java are not.

Thanks for that nugget, .

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 30 January 2015 at 20:39
Updated 21 January 2023 at 15:58