How do I define a keyword as a integer constant?
-
- Posts: 153
- Joined: Tue Sep 03, 2013 5:32 am
Re: How do I define a keyword as a integer constant?
You mentioned "You cannot. There is no "direct" way to associate a "value" to a keyword without some indirection" is there a way inolving redirection that would be under .10 seconds per million iterations...I could sure use an example
Re: How do I define a keyword as a integer constant?
I go by the maxim "first get it right, then get it fast". What you want is the constant which you initialize beforehand. It's the right way to do it. Forget about the keyword (or hack Emacs/Slime highlighting).joeish80829 wrote:You mentioned "You cannot. There is no "direct" way to associate a "value" to a keyword without some indirection" is there a way inolving redirection that would be under .10 seconds per million iterations...I could sure use an example
If you want you can do
Code: Select all
(defenum foo ((baz #.(cffi:foreing-enum-value 'foo :baz))) ; etc
Cheers
--
MA
Marco Antoniotti
-
- Posts: 153
- Joined: Tue Sep 03, 2013 5:32 am
Re: How do I define a keyword as a integer constant?
How would I fix emacs highlighting to see constants highlighted...also the package prefixes aren't getting highlighted e.g. gc:test, the gc: is the same color as "test"
-
- Posts: 153
- Joined: Tue Sep 03, 2013 5:32 am
Re: How do I define a keyword as a integer constant?
How would I fix emacs highlighting to see constants highlighted...also the package prefixes aren't getting highlighted e.g. gc:test, the gc: is the same color as "test"
Re: How do I define a keyword as a integer constant?
Well, well, well... I don't know. I just know it is possible. The only enlightened and wise answer is thus: RTFM (either Emacs highlighting, or ask the slime guys)joeish80829 wrote:How would I fix emacs highlighting to see constants highlighted...also the package prefixes aren't getting highlighted e.g. gc:test, the gc: is the same color as "test"

Marco Antoniotti