code_junkie

How to implement closures without gc?

Nov 10th, 2011
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.11 KB | None | 0 0
  1. (int)=>int create_lambda(int a)
  2. {
  3. return { (int x) => x + a }
  4. }
  5.  
  6. create_lambda(5)(4) // undefined result
Add Comment
Please, Sign In to add comment