* 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:
@@ -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)))))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user