Issue #83 has been updated by luke.

Status changed from Needs design decision to Accepted
Affected version set to 0.24.4

I agree that this should happen.

Really, the only thing stopping it from happening is inheritance of defaults, 
and that can likely be done just as easily lexically as dynamically, at this 
point.  And, truthfully, it would probably make more sense that way.
----------------------------------------
Bug #83: Puppet should be lexically scoped, not dynamically scoped
http://reductivelabs.com/redmine/issues/show/83

Author: luke
Status: Accepted
Priority: Low
Assigned to: luke
Category: language
Target version: 
Complexity: Unknown
Patch: None
Affected version: 0.24.4
Keywords: 


In the following code:

<pre>
$s = "outer"

define print(msg) {
  exec { echo:
    command => "/bin/echo printing $s:",
    logoutput => true
  }
}

define otherprint {
  $s = "otherprint"
  print { msg => "otherprint" }
}

otherprint {}
</pre>

'print' should find the $s bound in the outer scope, not the otherprint scope.


----------------------------------------
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://reductivelabs.com/redmine/my/account

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to