Skip to content

Instantly share code, notes, and snippets.

@PuercoPop
Created May 10, 2019 20:32
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 PuercoPop/d6f83ec7b5671c3153ba7f3655eaf6ef to your computer and use it in GitHub Desktop.
Save PuercoPop/d6f83ec7b5671c3153ba7f3655eaf6ef to your computer and use it in GitHub Desktop.
CL-USER> (compile nil (lambda () (let ((x 33))
(alexandria:once-only (x)
42))))
; in: COMPILE ()
; (ALEXANDRIA.0.DEV:ONCE-ONLY (X)
; 42)
; --> LET SB-INT:QUASIQUOTE SB-IMPL::|List|
; ==>
; (LET ((X #:ONCE-ONLY0))
; 42)
;
; caught STYLE-WARNING:
; The variable X is defined but never used.
;
; compilation unit finished
; caught 1 STYLE-WARNING condition
#<FUNCTION (LAMBDA ()) {52E579FB}>
NIL
NIL
CL-USER> (compile nil (lambda () (let ((x 33))
(alexandria:once-only (x)
(declare (ignorable x))
42))))
#<FUNCTION (LAMBDA ()) {52E57C5B}>
NIL
NIL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment