help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [External] : Re: cond construct for situation when a variable is t


From: Drew Adams
Subject: RE: [External] : Re: cond construct for situation when a variable is t
Date: Tue, 22 Aug 2023 16:10:10 +0000

> > You can, you totally can. Just don't `setq' t to anything ;)
> 
> Right, because one can set the letter t to something which would then
> screw up the idea that t means a truth condition.

(setq t 42)

Debugger entered--Lisp error: (setting-constant t)
  signal(setting-constant (t))
  (progn (signal 'setting-constant (list 't)))
  (progn (progn (signal 'setting-constant (list 't))))
  elisp--eval-last-sexp(nil)
  eval-last-sexp(nil)
  funcall-interactively(eval-last-sexp nil)
  command-execute(eval-last-sexp)

And `t' is not a "letter" here; it's a _symbol_
whose name is "t".

reply via email to

[Prev in Thread] Current Thread [Next in Thread]