The proposal is to declare a local function as non-capturing. The keyword to indicate that would be static
.
Note: if we do this, then we should also consider allowing parameters and locals of the local function to shadow parameters and locals from the containing method.
Related discussion thread, including a discussion of "capture lists" (a more elaborate feature): #1277
Note: EE scenarios are a concern.
Do we want to allow some other modifiers (like unsafe
)?
LDM history:
Pretasoc, Joe4evr, ilmax, jnm2, mavasani and 54 morejnm2, m0sa, Unknown6656, SirIntruder, mpawelski and 2 morejnm2, drewnoakes, vibeeshan025, Unknown6656, SirIntruder and 8 morejuliusfriedmanGladskih and ontorder
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4