Skip to content

Instantly share code, notes, and snippets.

@AeroNotix

AeroNotix/l.lisp Secret

Created December 28, 2017 01:16
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save AeroNotix/f5ab0a063a7fe8953178d1b569587a96 to your computer and use it in GitHub Desktop.
~/dev/erlang-memory-debugging sbcl
This is SBCL 1.4.0, an implementation of ANSI Common Lisp.
More information about SBCL is available at <http://www.sbcl.org/>.
SBCL is free software, provided as is, with absolutely no warranty.
It is mostly in the public domain; some portions are provided under
BSD-style licenses. See the CREDITS and COPYING files in the
distribution for more information.
* (defun foo (x) (defun foo2 (y) (+ 1 y)))
; in: DEFUN FOO
; (SB-INT:NAMED-LAMBDA FOO
; (X)
; (BLOCK FOO (DEFUN FOO2 (Y) (+ 1 Y))))
;
; caught STYLE-WARNING:
; The variable X is defined but never used.
;
; compilation unit finished
; caught 1 STYLE-WARNING condition
FOO
* (foo2)
debugger invoked on a UNDEFINED-FUNCTION in thread
#<THREAD "main thread" RUNNING {10019567D3}>:
The function COMMON-LISP-USER::FOO2 is undefined.
Type HELP for debugger help, or (SB-EXT:EXIT) to exit from SBCL.
restarts (invokable by number or by possibly-abbreviated name):
0: [CONTINUE ] Retry using FOO2.
1: [USE-VALUE] Use specified function
2: [ABORT ] Exit debugger, returning to top level.
(SYMBOL-FUNCTION FOO2)
0] 0
debugger invoked on a UNDEFINED-FUNCTION in thread
#<THREAD "main thread" RUNNING {10019567D3}>:
The function COMMON-LISP-USER::FOO2 is undefined.
Type HELP for debugger help, or (SB-EXT:EXIT) to exit from SBCL.
restarts (invokable by number or by possibly-abbreviated name):
0: [CONTINUE ] Retry using FOO2.
1: [USE-VALUE] Use specified function
2: [ABORT ] Exit debugger, returning to top level.
(SYMBOL-FUNCTION FOO2)
0] 2
* (foo 1)
FOO2
* (foo2 1)
2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment