Guest User

Untitled

a guest
Apr 27th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. x = 3
  2. if true
  3. x = 5
  4.  
  5. # x should be 5 here. Dynamic scope means it's 3
  6.  
  7.  
  8. # But dynamic scope is needed for proper macros. So maybe have = do lexical assignment (propagating up the scope stack) and have another operator do dynamic assignment (only in the current scope)
Add Comment
Please, Sign In to add comment