help-cfengine
[Top][All Lists]
Advanced

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

Re: Speaking of imports...


From: simon
Subject: Re: Speaking of imports...
Date: 8 Dec 2005 23:29:21 -0800
User-agent: G2/0.2

What you have observed is correct - and yes its odd you'd think (if it
was a normal programming language) that the "scope" of the definitions
in the imported file was just within that imported file and its own
children. But actually it extends to files that are imported later.

What happens I guess is CFEngine imports one file and then the second
one and only they starts parsing them: so the scope of your definitions
extends over both files.  So the documentation is exactly true: it isnt
carried "back up" to the parent ..... what it doesnt make clear is that
it is available in files import after ;)



reply via email to

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