PoshCode Archive  File History

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

History of Variable-capture.ps1

2018-06-10
13:44
Powershell really needs lexical variables and automatic lexical closures. ScriptBlock.GetNewClosure is a heavyweight hack (it captures the entire scope chain every time you call it) around lexical variable capture so here is a lighter weight hack. file: [627c3c9022] check-in: [c44c0c23f6] user: Public Domain branch: trunk, size: 1257 Added