|
From: | Oleksandr Gavenko |
Subject: | Re: Question about Elisp language abilities (evaluating expr on time of func definition and ability to construct function). |
Date: | Fri, 30 Sep 2011 01:45:47 +0300 |
User-agent: | Mozilla/5.0 (Windows NT 6.1; WOW64; rv:6.0.1) Gecko/20110830 Thunderbird/6.0.1 |
30.09.2011 1:14, Oleksandr Gavenko пишет:
30.09.2011 0:33, Oleksandr Gavenko пишет:Is there any Elisp special form which evaluate args when 'defun' parsed (like words which defined with IMMEDIATE marker in Forth prog lang)? (defun f (x) (IMMEDIATE (message "hello!")) (1+ x) )
I have understood that difference between Elisp and Forth syntax (on evaluation)! In Forth word definition IMMEDIATE like word placed into definition: : abs dup <0 if neg then ; 'if' and 'then' such word. On other corner in Elisp you wrap whole definition with powerful macro construction: > (defmacro my-defun-rename-symb-tree (name doc func) > "Travel by TREE and applies FUNC to each symbol." > `(defun ,name (tree)
[Prev in Thread] | Current Thread | [Next in Thread] |