Skip to content

Instantly share code, notes, and snippets.

@ponkore
Created March 15, 2012 00:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ponkore/2040691 to your computer and use it in GitHub Desktop.
Save ponkore/2040691 to your computer and use it in GitHub Desktop.
Lexical Scope _and_ Dynamic Scope
;;; 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