(get-global symbol) -> value
(get-global symbol argument) -> value
Returns the global value assigned to symbol.
If you supply an optional second value argument, if the global can't be found, it will return that. Otherwise, it will return #f.
Examples:
>>(get-global 'nonesuch *eof*) :: *eof* >>(get-global 'globals) :: [prim globals] >>(let ((globals 0)) (get-global 'globals)) :: [prim globals] >>(let ((globals 0)) globals) :: 0
See Also: globals