PoshCode Archive  Hex Artifact Content

Artifact 627c3c9022fea50f5476cbb022797ff7a17dce19a1d6caff61a6203708eb6fda:

  • File Variable-capture.ps1 — part of check-in [c44c0c23f6] at 2018-06-10 13:44:44 on branch trunk — 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. (user: Public Domain size: 1257)

A hex dump of this file is not available. Please download the raw binary file and generate a hex dump yourself.