Created
May 5, 2017 01:28
-
-
Save Cauterite/2355ae9c2142180525275c6ef2b32ad7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function a($f) {& $f} | |
function main() { | |
$f = {write-host 'success'} | |
a {& $f} # stack-overflow | |
a {& $f}.getnewclosure() # okay | |
} | |
[void] (main) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Nice