Advertisement
ranveer5289

lazy evaluation

Oct 14th, 2011
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. x = keyboard input (5)
  2. y = x + 3 (=8)
  3. echo y (8)
  4. x = keyboard input (2)
  5. echo y
  6.  
  7.  
  8. if case1: Static binding, lazy evaluation
  9. if case2: Dynamic binding, lazy evaluation.
  10.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement