1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Variables in cfengine 3</title>
</head>
<body>
<h1>Variables in cfengine 3</h1>
Here is an important distinction.
All variables are defined in bundles, because a variable assignment is a promise
for a container to hold a value.
There are no variable declarations in bodies, so the following
email => "mark@cfengine.com";
is not a variable declaration, but represents the setting of a static attribute
email to a value. If you want to think of this as a reserved variable that is okay,
but you cannot use the value of this in an expression.
<hr>
<address><a href="mailto:mark@atlas">Mark Burgess</a></address>
<!-- Created: Thu Jan 3 08:44:33 CET 2008 -->
<!-- hhmts start -->
Last modified: Thu Jan 3 08:47:50 CET 2008
<!-- hhmts end -->
</body>
</html>
|