From 32385342eaa73711cbd2d3481ecd98969bb382ef Mon Sep 17 00:00:00 2001 From: Kaz Kylheku <kaz@kylheku.com> Date: Mon, 14 Nov 2016 07:19:41 -0800 Subject: 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. --- txr.1 | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'txr.1') 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 -- cgit v1.2.3