Forum: CFEngine Help
Subject: Re: CFEngine Help: Thoughts about some cfengine design decisions?
Author: lauwersw
Link to topic: https://cfengine.com/forum/read.php?3,24311,24329#msg-24329

Variables are scoped, I presume those rules still count when used inside 
ifvarclass. So the risk of name collisions with variables is non-existing.

I guess the class usage depends a bit on the complexity of your code. In many 
cases local classes are fine, and otherwise you can put them in a global 
bundle. But I have some complex code with different bundles getting called at 
several levels, and I find myself redefining the same classes again and again 
in those levels. Probably that's not the most typical usage though.

But your comment made me think: maybe "local" classes should remain, but be 
transformed in "scoped" classes, so they can be accessed from other bundles as 
well.

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

Reply via email to