demos: botherbotherbother: Make executable from command line.
authorChristopher Allan Webber <cwebber@dustycloud.org>
Mon, 25 Apr 2016 16:44:55 +0000 (11:44 -0500)
committerChristopher Allan Webber <cwebber@dustycloud.org>
Mon, 25 Apr 2016 16:44:55 +0000 (11:44 -0500)
* demos/actors/botherbotherbother.scm: Make executable.
  Add shebang.
  (main): Allow arbitrary arguments from the command line or wherever.

demos/actors/botherbotherbother.scm [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index 3a2747a..5a43a8b
@@ -1,3 +1,7 @@
+#!/usr/bin/guile \
+-e main -s
+!#
+
 ;;; 8sync --- Asynchronous programming for Guile
 ;;; Copyright (C) 2016 Christopher Allan Webber <cwebber@dustycloud.org>
 ;;;
 
 (define num-students 10)
 
-(define (main)
+(define (main . args)
   (define agenda (make-agenda))
   (define hive (make-hive))
   (define professor (hive-create-actor hive <professor>))