[cmake-developers] real functions (was: $LIST_LENGTH{} syntax)

Torsten at Robitzki.de Torsten at Robitzki.de
Tue Jan 22 10:41:35 EST 2019



> Am 22.01.2019 um 16:37 schrieb Brad King <brad.king at kitware.com>:
> 
> On 1/22/19 10:28 AM, Torsten at Robitzki.de wrote:
>> With `$CACHE{VAR}` and `$ENV{VAR}` we already have the syntax for calling a „function“.
> 
> No, there is no obvious way to pass arguments, handle nested quoting, etc.

Jep, you are right. I’ve overlooked that nested aspect.

> The language was not designed for that.  That is a big can of worms I'd rather
> not open just to solve the list length problem which is already only 2 lines.

Ok, I understand this.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: Message signed with OpenPGP
URL: <https://cmake.org/pipermail/cmake-developers/attachments/20190122/61d85dec/attachment.sig>


More information about the cmake-developers mailing list