summaryrefslogtreecommitdiffstats
path: root/txr.1
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2016-11-14 07:19:41 -0800
committerKaz Kylheku <kaz@kylheku.com>2016-11-14 07:19:41 -0800
commit32385342eaa73711cbd2d3481ecd98969bb382ef (patch)
tree9d3daba823213b63976aed07bcaa6ca091d7f1e1 /txr.1
parentfe43a541f9a5eaee27ff2ce2811cfd83eb6e3b1c (diff)
downloadtxr-32385342eaa73711cbd2d3481ecd98969bb382ef.tar.gz
txr-32385342eaa73711cbd2d3481ecd98969bb382ef.tar.bz2
txr-32385342eaa73711cbd2d3481ecd98969bb382ef.zip
New in-package macro.
* lisplib.c (package_set_entries): Add in-package symbol name to autload list. * share/txr/stdlib/package.tl (in-package): New macro. * txr.1: Documented.
Diffstat (limited to 'txr.1')
-rw-r--r--txr.125
1 files changed, 25 insertions, 0 deletions
diff --git a/txr.1 b/txr.1
index 27fa0cae..b692d6f0 100644
--- a/txr.1
+++ b/txr.1
@@ -39797,6 +39797,31 @@ removed with
and the name is interned again.
.RE
+.coNP Macro @ in-package
+.synb
+.mets (in-package << name )
+.syne
+.desc
+The
+.code in-package
+macro causes the
+.code *package*
+special variable to take on the package denoted by
+.metn name .
+The macro checks, at expansion time, that
+.meta name
+is either a string or symbol. An error is thrown if
+this isn't the case.
+
+The
+.meta name
+argument expression isn't evaluated, and so must not be quoted.
+
+The code generated by the macro performs a search for the
+package; if the package is not found at the time when
+the macro's expansion is evaluated. An error is thrown if
+the package isn't found.
+
.SS* Pseudo-random Numbers
.coNP Special variable @ *random-state*
.desc