Skip to content

Instantly share code, notes, and snippets.

(define obj (make-top-level-environment))
(environment-define obj 'foo (lambda (x) (+ x bar)))
(environment-define obj 'bar 10)
((environment-lookup obj 'foo) 1)
; Unbound variable: bar
;; This works:
(define obj (extend-top-level-environment #f))
(eval '(define (foo x) (+ x bar)) obj)
(environment-define obj 'bar 10)
((environment-lookup obj 'foo) 1)
@mobius-eng
mobius-eng / Plot_Examples.md
Created January 22, 2017 10:38 — forked from gizmaa/Plot_Examples.md
Various Julia plotting examples using PyPlot
module logger_mod
use env_mod
use error_mod
use optional_mod
use character_mod
implicit none
private