sync notes(auto)

This commit is contained in:
Kaz Saita(raspi5) 2024-04-28 15:00:24 +09:00
parent e77ddb5407
commit 23073e4451
2 changed files with 10 additions and 0 deletions

View file

@ -68,6 +68,15 @@ d ; => 1
;; caught 1 WARNING condition
(setf e 2); 2回目 ;; 同様のwarningが出る
e ; => 2
;; defconstant強い。letでも変えられない
(let
((d 2)))
;; Execution of a form compiled with errors.
;; Form:
;; (LET ((D 2)))
;; Compile-time error:
;; COMMON-LISP-USER::D names a defined constant, and cannot be used in LET.
;; [Condition of type SB-INT:COMPILED-PROGRAM-ERROR]
```
### Refs.

View file

@ -90,4 +90,5 @@ int main(void)
- [変数束縛はLispのもう一つの本質である続き](http://blog.livedoor.jp/s-koide/archives/1873931.html)
### 参考にしてはいけない
- レキシカルスコープの説明しかない [クロージャ - JavaScript | MDN](https://developer.mozilla.org/ja/docs/Web/JavaScript/Closures)
- とてもわかりにくい [動的スコープ - Wikipedia](https://ja.wikipedia.org/wiki/%E5%8B%95%E7%9A%84%E3%82%B9%E3%82%B3%E3%83%BC%E3%83%97)