Created
March 15, 2012 00:27
-
-
Save ponkore/2040691 to your computer and use it in GitHub Desktop.
Lexical Scope _and_ Dynamic Scope
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;;; http://jutememo.blogspot.com/2012/03/blog-post.html | |
;;; in Emacs Scratch Buffer | |
(setq x 7) | |
7 | |
(defun g () x) | |
g | |
(defun f () | |
(let ((x 9)) | |
(g))) | |
f | |
(f) | |
9 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment