emacs-devel
[Top][All Lists]
Advanced

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

RE: defconst


From: Drew Adams
Subject: RE: defconst
Date: Wed, 17 Nov 2004 16:36:13 -0800

    The concrete effect of `(defconst var value)' is that it is equivalent
    with `(defvar var value)' followed by `(setq var value)'

Just a nit-picking reminder:

The example you gave, without doc strings, is correct. However, in general,
defconst is not exactly the same as defvar followed by setq. Like defvar,
defconst lets you change the doc string, as well as the value.

  - Drew





reply via email to

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