* Added a $arg-list system primitive that accesses the pcb->arg_list

field.
* Added a command-line-arguments parameter to the core.
This commit is contained in:
Abdulaziz Ghuloum
2006-12-01 10:02:05 -05:00
parent 4b060b685f
commit 0ff5b0cf75
4 changed files with 15 additions and 5 deletions
+7
View File
@@ -1694,3 +1694,10 @@
[else
(cons fst (f ($car rest) ($cdr rest)))]))))
(primitive-set! 'command-line-arguments
(make-parameter ($arg-list)
(lambda (x)
(if (and (list? x) (andmap string? x))
x
(error 'command-list "invalid command-line-arguments ~s\n" x)))))