Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[cl-backend] support sub foo($) {...}
  • Loading branch information
pmurias committed Feb 16, 2011
1 parent 1d616cd commit e8b62fe
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cl-backend/backend.lisp
Expand Up @@ -83,10 +83,11 @@
names ; All legal named-parameter names
default ; Xref Sub to call if HAS_DEFAULT; must be child of this
) (if (equal flags 96)
(var-name slot)
(if slot
(var-name slot)
(gensym))
nil))))


(defun mymap (func list) (remove-if #'null (mapcar func list)))

(defmacro define-nam-sub
Expand Down
5 changes: 5 additions & 0 deletions simple-tests/nameless-arg.t
@@ -0,0 +1,5 @@
say "1..1";
sub foo($) {
say "ok 1";
}
foo("this doesn't get used");

0 comments on commit e8b62fe

Please sign in to comment.