Issue #83 has been updated by Luke Kanies.

Assigned to changed from Luke Kanies to Markus Roberts

I think the futures stuff fixes this.
----------------------------------------
Bug #83: Puppet should be lexically scoped, not dynamically scoped
http://projects.puppetlabs.com/issues/83

Author: Luke Kanies
Status: Accepted
Priority: Low
Assigned to: Markus Roberts
Category: language
Target version: 
Patch: None
Affected version: 0.24.4
Keywords: 
Branch: 


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://projects.puppetlabs.com/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