Issue #83 has been updated by Andrew  Parker.

Status changed from Accepted to Closed

This has been handled by #13970
----------------------------------------
Bug #83: Puppet should be lexically scoped, not dynamically scoped
https://projects.puppetlabs.com/issues/83#change-68555

Author: Luke Kanies
Status: Closed
Priority: Low
Assignee: 
Category: language
Target version: 
Affected Puppet 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