[Top][All Lists]

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

eval-when-compile vs defconst

From: Bob Rogers
Subject: eval-when-compile vs defconst
Date: Sat, 11 Nov 2006 12:03:05 -0500

   From: Bob Rogers <address@hidden>
   Date: Sat, 11 Nov 2006 12:01:14 -0500

      From: Stephen Leake <address@hidden>
      Date: Sat, 11 Nov 2006 09:39:32 -0500

      I ran across this construct in ada-mode.el:

        (defconst ada-95-string-keywords
          '("abstract" "aliased" "protected" "requeue" "tagged" "until")
          "List of keywords new in Ada 95.
      Used to define `ada-*-keywords'."))

      . . .

   It says "the _result_ of the body", i.e. after compile-time evaluation.

Sorry; replied before thinking.  I think you're right; defconst
shouldn't need eval-when-compile.

                                        -- Bob

reply via email to

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