From cbce0f1bda15d3691e706ab7def3407757ffe8f8 Mon Sep 17 00:00:00 2001 From: Christopher Allan Webber Date: Mon, 25 Apr 2016 11:44:55 -0500 Subject: [PATCH] demos: botherbotherbother: Make executable from command line. * demos/actors/botherbotherbother.scm: Make executable. Add shebang. (main): Allow arbitrary arguments from the command line or wherever. --- demos/actors/botherbotherbother.scm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) mode change 100644 => 100755 demos/actors/botherbotherbother.scm diff --git a/demos/actors/botherbotherbother.scm b/demos/actors/botherbotherbother.scm old mode 100644 new mode 100755 index 3a2747a..5a43a8b --- a/demos/actors/botherbotherbother.scm +++ b/demos/actors/botherbotherbother.scm @@ -1,3 +1,7 @@ +#!/usr/bin/guile \ +-e main -s +!# + ;;; 8sync --- Asynchronous programming for Guile ;;; Copyright (C) 2016 Christopher Allan Webber ;;; @@ -108,7 +112,7 @@ (define num-students 10) -(define (main) +(define (main . args) (define agenda (make-agenda)) (define hive (make-hive)) (define professor (hive-create-actor hive )) -- 2.31.1