aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2023-06-11 09:59:39 -0700
committerKaz Kylheku <kaz@kylheku.com>2023-06-11 09:59:39 -0700
commitba062d3eb5cef28d91c01083e840be89aeab38fe (patch)
tree7cae949a3d27b95bb1d74d4278455ad1e0efc16e
parent1c009e3e74d00264553084883aac802ac1369af1 (diff)
downloadtl-who-ba062d3eb5cef28d91c01083e840be89aeab38fe.tar.gz
tl-who-ba062d3eb5cef28d91c01083e840be89aeab38fe.tar.bz2
tl-who-ba062d3eb5cef28d91c01083e840be89aeab38fe.zip
Use load-args-process.
* tl-who.tl: Replace command processor with load-args-process, which is now in the language as of TXR 288. * README.md: Now requires 288 not 287.
-rw-r--r--README.md2
-rw-r--r--tl-who.tl23
2 files changed, 2 insertions, 23 deletions
diff --git a/README.md b/README.md
index d266b6e..2102c6f 100644
--- a/README.md
+++ b/README.md
@@ -313,7 +313,7 @@ thus defaulted).
TL-WHO has no external dependencies other than TXR itself.
-It requires version 287 or newer.
+It requires version 288 or newer.
## Installation/Use
diff --git a/tl-who.tl b/tl-who.tl
index 1f45619..2e065f3 100644
--- a/tl-who.tl
+++ b/tl-who.tl
@@ -24,25 +24,4 @@
;; NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
;; SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-;;
-;; New, experimental system construction method for TXR Lisp.
-;; Using the *load-args* feature introduced in Version 287,
-;; we can have a top-level entry point which responds to commands.
-;;
-;; (load "path/to/tl-who" :compile) ;; compile out-of-date files
-;; (load "path/to/tl-who" :clean) ;; remove compiled files
-;; (load "path/to/tl-who") ;; load files, compiled or source
-;;
-
-(compile-only
- (let ((files '#"tl-who packages specials util who"))
- (match-case *load-args*
- (()
- [mapdo load (cdr files)]) ;; avoid tl-who, this file!
- ((:compile)
- [mapdo compile-update-file files])
- ((:clean)
- [mapdo (op remove-path
- (path-cat (dir-name *load-path*) `@1.tlo`)
- nil)
- files]))))
+(compile-only (load-args-process '#"packages specials util who"))