[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Byte-compile constants in a function
From: |
Joe Riel |
Subject: |
Byte-compile constants in a function |
Date: |
Tue, 3 Jul 2012 09:57:12 -0700 |
Is there a way to define constant/macros so that the value is expanded
during byte-compilation of a function that uses them?
For example, I want to do
(defconst tag-prompt ?>)
(defun check (char) (eq char tag-prompt))
where the byte-compilation of check is the same as that of
(defun check (char) (eq char ?>))
--
Joe Riel
- Byte-compile constants in a function,
Joe Riel <=