summaryrefslogtreecommitdiffstats
path: root/txr.1
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2014-05-20 19:44:07 -0700
committerKaz Kylheku <kaz@kylheku.com>2014-05-20 19:44:07 -0700
commite2437397f8f4430fd479cafe9495e5a19e970f86 (patch)
treeb45cac8d1c9f26461d40b7a50744074cfeba618c /txr.1
parentd3221bbe79e7bb19cd5fab4138857af553ee9e7a (diff)
downloadtxr-e2437397f8f4430fd479cafe9495e5a19e970f86.tar.gz
txr-e2437397f8f4430fd479cafe9495e5a19e970f86.tar.bz2
txr-e2437397f8f4430fd479cafe9495e5a19e970f86.zip
The call operator should be a function!
* eval.c (call): New static function. (eval_args, op_call): Static functions removed. (eval_init): call_s registered as operator rather than function. * txr.1: Updated.
Diffstat (limited to 'txr.1')
-rw-r--r--txr.116
1 files changed, 4 insertions, 12 deletions
diff --git a/txr.1 b/txr.1
index 2272a9a5..b54ce957 100644
--- a/txr.1
+++ b/txr.1
@@ -6620,26 +6620,18 @@ Optional arguments:
[(lambda (x : y) (list x y)) 1] -> (1 nil)
[(lambda (x : y) (list x y)) 1 2] -> (1 2)
-.SS Operator call
+.SS Function call
.TP
Syntax:
- (call <function-form> {<argument-form>}*)
+ (call <function> <argument>*)
.TP
Description:
-The call operator invokes a function. <function-form> must evaluate
-to a function. Each <argument-form> is evaluated in left to right
-order and the resulting values are passed to the function as arguments.
-The return value of the (call ...) expression is that of the function
-applied to those arguments.
-
-The <function-form> may be any Lisp form that produces a function
-as its value: a symbol denoting a variable in which a function is stored,
-a lambda expression, a function call which returns a function,
-or (fun ...) expression.
+The call function invokes <function>, passing it the given
+arguments, if any.
.TP
Examples: