tasks a-s
This commit is contained in:
parent
47bf37c096
commit
b83f433714
12433 changed files with 156208 additions and 123 deletions
12
Task/Scope-modifiers/Common-Lisp/scope-modifiers.lisp
Normal file
12
Task/Scope-modifiers/Common-Lisp/scope-modifiers.lisp
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
;; *bug* shall have a dynamic binding.
|
||||
(declaim (special *bug*))
|
||||
|
||||
(let ((shape "triangle") (*bug* "ant"))
|
||||
(flet ((speak ()
|
||||
(format t "~% There is some ~A in my ~A!" *bug* shape)))
|
||||
(format t "~%Put ~A in your ~A..." *bug* shape)
|
||||
(speak)
|
||||
|
||||
(let ((shape "circle") (*bug* "cockroach"))
|
||||
(format t "~%Put ~A in your ~A..." *bug* shape)
|
||||
(speak))))
|
||||
Loading…
Add table
Add a link
Reference in a new issue