freenode/#lisp - IRC Chatlog
Search
1:37:01
ruffianeo
the problem I have with (remote-foo 1 2 3), that the (defun remote-foo (a b c) '(foo a b c)) needs to kind of eval the arguments and put the values into the variables
1:37:01
no-defun-allowed
Then you want to generate (list 'foo ,@arguments), but not exactly that, because the lambda list (a &key b) would do something else.
1:37:52
no-defun-allowed
If you can live without the lambda list, you could generate `(defun remote-foo (&rest rest) (cons ',name rest)).
1:38:51
no-defun-allowed
One idea though: instead of generating (remote-foo 1 2 3), why not (remote (foo 1 2 3))? Defining REMOTE would be trivial, and it'd just look like FOO otherwise.
1:46:28
ruffianeo
(remote (name &rest args) ...) could be a second macro I then simply use for the first one
11:03:46
drl
How can this be fixed: ; Evaluation aborted on #<SB-KERNEL:SIMPLE-PACKAGE-ERROR "~A is a nickname for the package ~A" {1006988463}>.
13:04:32
pve
Hi, are implementations required to store the source code of function definitions (as a string or cons)? I can see that on SBCL, (describe #'foo) shows me the source form, but (describe #'+) does not. Does it depend on the optimization settings used when compiling the code?