I agree with Seva, and also point out that by trying a list append, you are still thinking procedurally and not declaratively...
Procedural programming (and thinking) says "do X, then Y, then Z" Declarative programming (which is what Cfengine is) says "make sure that X, Y and Z are all satisfied", and let the language (largely) worry about ordering and retries and most importantly, "convergence" on the final goal. -Dan > Still get no clue why aren't you gentlemen satisfied with > > "bar" slist => { @(foo), "xyz" }; > > inclusion. > > 2010/6/4 Daniel Dehennin <daniel.dehen...@baby-gnu.org>: > > Vasiliy G Tolstov <v.tols...@selfip.ru> writes: > > > >> is there are any plans to add support to append value to slist ? > >> > >> For example: > >> > >> "a" slist => { "1", "2" }; > >> "a" slist => { "$(a)", "3" }; > > > > +1 > > > > I think the '"name" *list => {}' construct could be seen as: promise to > > have elements listed in '{}' in the list named 'name'. > > > > My point is: > > - a list construct define a list variable if it's not already defined > > - then add the listed elements if they are not presents > > > > Maybe an 'append=>' and 'prepend=>' could be used instead of overloading > > '*list=>' and changing its meaning? > > > > Regards. > > -- > > Daniel Dehennin > > Récupérer ma clef GPG: > > gpg --keyserver pgp.mit.edu --recv-keys 0x6A2540D1 > > > > _______________________________________________ > > Help-cfengine mailing list > > Help-cfengine@cfengine.org > > https://cfengine.org/mailman/listinfo/help-cfengine > > > > > > > > -- > SY, Seva Gluschenko. > _______________________________________________ > Help-cfengine mailing list > Help-cfengine@cfengine.org > https://cfengine.org/mailman/listinfo/help-cfengine
_______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine