demos: actors: Update main functions to support arbitrary arguments.
authorChristopher Allan Webber <cwebber@dustycloud.org>
Tue, 26 Apr 2016 18:39:52 +0000 (13:39 -0500)
committerChristopher Allan Webber <cwebber@dustycloud.org>
Tue, 26 Apr 2016 18:39:52 +0000 (13:39 -0500)
* demos/actors/robotscanner.scm (main):
* demos/actors/simplest-possible.scm (run-demo): Update to take
  arbitrary arguments.  This allows being more easily run by the
  command line.

demos/actors/robotscanner.scm
demos/actors/simplest-possible.scm

index f2d1d93f5f0cc765601e41e520991ab0a006a16e..89088c61f1220975ad8aec1e3cc6ce2688d315c0 100644 (file)
    (send-message actor overseer 'transmission
                  #:message "Mission accomplished.")))
 
-(define (main)
+(define (main . args)
   (define hive (make-hive))
   (define overseer (hive-create-actor hive <overseer>))
   (define initial-messages
index 6c9715915323ec0cc9cbaad6f85832b8b7f0ae16..09ee227af8d4bee9a1455821722c00b42a33a7a2 100644 (file)
@@ -35,7 +35,7 @@
 (define hive (make-hive))
 (define our-emo (hive-create-actor hive <emo>))
 (define our-proog (hive-create-actor hive <proog>))
-(define (run-demo)
+(define (run-demo . args)
   (ez-run-hive hive
                (list (hive-bootstrap-message hive our-emo 'greet-proog
                                              #:target our-proog))))