guile-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Guile-commits] 01/02: define-meta-command: mention effects of a missing


From: Rob Browning
Subject: [Guile-commits] 01/02: define-meta-command: mention effects of a missing category
Date: Fri, 12 Jul 2024 20:30:15 -0400 (EDT)

rlb pushed a commit to branch main
in repository guile.

commit d99ae68f882947a962a8911655fa8104bb24e124
Author: Rob Browning <rlb@defaultvalue.org>
AuthorDate: Sun Jun 23 13:25:53 2024 -0500

    define-meta-command: mention effects of a missing category
    
    module/system/repl/command.scm: add comment.
---
 module/system/repl/command.scm | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/module/system/repl/command.scm b/module/system/repl/command.scm
index ca7450610..8b0422dbd 100644
--- a/module/system/repl/command.scm
+++ b/module/system/repl/command.scm
@@ -235,6 +235,8 @@
      (define-meta-command ((name category) repl () . datums)
        docstring b0 b1 ...))
 
+    ;; These cases (with category #f) will only produce functional
+    ;; commands if the name is already in the *command-table*.
     ((_ (name repl (expression0 ...) . datums) docstring b0 b1 ...)
      (define-meta-command ((name #f) repl (expression0 ...) . datums)
        docstring b0 b1 ...))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]