summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2014-02-02 14:28:57 -0800
committerKaz Kylheku <kaz@kylheku.com>2014-02-02 14:28:57 -0800
commitfd2690b7b18d46ea970f1ec828d7a35e31d4942b (patch)
treea18460969fb5b3eab49676b2012f3c4ac3a35adf
parent256ba9369ab15b1eced9aa81fd1e466e138e2933 (diff)
downloadtxr-fd2690b7b18d46ea970f1ec828d7a35e31d4942b.tar.gz
txr-fd2690b7b18d46ea970f1ec828d7a35e31d4942b.tar.bz2
txr-fd2690b7b18d46ea970f1ec828d7a35e31d4942b.zip
* txr.1: Clarify that arbitrary expressions cannot be used
in the dot position of a function call form.
-rw-r--r--txr.114
1 files changed, 11 insertions, 3 deletions
diff --git a/txr.1 b/txr.1
index e2e4a383..a579aa61 100644
--- a/txr.1
+++ b/txr.1
@@ -5024,9 +5024,10 @@ arugments are symbols, they are treated according to Lisp-2 namespacing rules.
Additionally, if there is an expression in the dotted position, it is also
evaluated. It should evaluate to a sequence: a list, vector or string. The
elements of the sequence generate additional arguments for the function
-call. In some other Lisp dialects, a function called apply (or similar) must
-be used to do the same thing, and applying sequences other than lists is not
-supported.
+call. Note, however, that a compound form cannot be used in the dot position,
+for obvious reasons, namely that (a b c . (foo z)) does not mean that there is
+a compound form in the dot position, but a different spelling for
+(a b c foo z), where foo behaves as a variable.
The DWIM brackets are similar, except that the first position is an arbitrary
expression which is evaluated according to the same rules as the remaining
@@ -5052,6 +5053,13 @@ Examples:
[c 1] ;; indexes into vector #(5 6 7) to yield 6
+.TP Dialect Note:
+
+In some other Lisp dialects, the improper list syntax is not supported;
+a function called apply (or similar) must be used for application even if
+the expression which gives the trailing arguments is a symbol. Moreover,
+applying sequences other than lists is not supported.
+
.SS Regular Expressions
In TXR Lisp, the / character can occur in symbol names, and the / token