Forum: CFEngine Help
Subject: Re: passing lists to external body parts (Was: Re: indentation and 
insert_lines)
Author: sauer
Link to topic: https://cfengine.com/forum/read.php?3,27201,27269#msg-27269

I'm pretty sure this is because the list isn't actually passed - a name of the 
list is what's passed (hence the need to fully qualify lists passed as 
arguments).  In order to implement what you (and I, just for the record) want, 
the language parser would have to define an internal name for the list and pass 
along that internal name.  It's not impossible to do that - but it makes the 
syntax parser a bit more complicated, and the difficulty in generating a 
guaranteed unique internal name is not to be overlooked.

I'd like the same paradigm extended to inline compound bodies, personally.  You 
know, as long as we're wishing for anonymous structures. :)

_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to