python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
Why the use of `,@` does not work as I expected in this common lisp macro? Why is Slime returning this error message?
I am reading the book Lisp written by Winston. In addition, I am using SBCL, Emacs, and Slime.
In chapter 8 (about macros), the book has the following exercise:
Problem 8-7: A stack is a learnly ord...
Pedro Delfino
Votes: 0
Answers: 3
How to convert this Common Lisp function into a macro?
I am using SBCL, Slime, and Emacs to develop in Common Lisp.
I have this function:
(defun build-cond-action-pairs (&rest var)
(labels ((aux (xs-left accu)
(cond ((null (cddr xs-left...
Pedro Delfino
Votes: 0
Answers: 2
How does SystemVerilog compiler knows to separate two arguments in a macro?
I have this macro:
`define do_code(DO_SOETHING, ID) \
fork \
begin \
``DO_SOMETHING`` \
end \
begin \
$display("%s",ID.name()); \
end \
...
NimrodB
Votes: 0
Answers: 1
Why is a macro "not declared in this scope" in my code?
I have googled to no end but have not found a definitive answer.
I use:
#include <cmath>
to include the M_PI macro (for the value of pi) in my header file.
I use M_PI in the class I have create...
Gregor Hartl Watters
Votes: 0
Answers: 2