cfengine-develop
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Cfengine-develop] Patch for supporting lists in variable/function a


From: Mark . Burgess
Subject: Re: [Cfengine-develop] Patch for supporting lists in variable/function assignments
Date: Wed, 3 Dec 2003 07:35:54 +0100 (MET)

THanks - will take a while to look at these patches, but as I said
a while back, we need to have a real and informed discussion about
iteration. I suggest including Alva and Paul in it. We need to find
a general syntax for it that does not do violence to the cfengine
simplicity. 

Last time I asked, I remember you sending me lots of Perl - but
that's not the answer. We need something really smart.

M

On  2 Dec, Luke A. Kanies wrote:
> I've written up a quick patch to item.c and install.c.  They do two
> things:  Create an 'AppendItems' function which just wraps AppendItem, and
> then replaced most of the calls to AppendItem within install.c to calls to
> AppendItems.  I didn't replace all of them, because it didn't seem to make
> sense for some of them.
> 
> The patch I'm including only splits items into lists based on having
> spaces or commas in them, but it could be changed into just about
> anything.
> 
> I think this patch is a good idea at least for now, because it adds some
> significant extra functionality without adding much in the way of
> complexity.  Please let me know if you have any questions about the patch.
> Oh, and this is a patch to 2.1.0p1.
> 
> Luke
> 



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Work: +47 22453272            Email:  address@hidden
Fax : +47 22453205            WWW  :  http://www.iu.hio.no/~mark
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~





reply via email to

[Prev in Thread] Current Thread [Next in Thread]