Update reference to hive to be dynamic state, simplify create-actor.
authorChristopher Allan Webber <cwebber@dustycloud.org>
Tue, 1 Aug 2017 16:30:38 +0000 (11:30 -0500)
committerChristopher Allan Webber <cwebber@dustycloud.org>
Thu, 3 Aug 2017 20:50:19 +0000 (15:50 -0500)
commit1253ea73ba4020df78671955721721179b556bfc
treeda0360f03bb5454efca109dd98845b824a3f8ba8
parent5f12e17b62324e34e5e81a1c2a21a46edc988705
Update reference to hive to be dynamic state, simplify create-actor.

This also eliminates bootstrap-actor.

* 8sync/actors.scm (<actor>, actor-hive-channel): Removed hive-channel
slot from <actor>.
(*hive-id*, *hive-channel*): New variables.
(spawn-hive): Update to parameterize *hive-id* and *hive-channel*.
(%create-actor): No longer take hive-channel and hive-id as arguments.
(bootstrap-actor, bootstrap-actor*): Removed since these are now
unified with create-actor.
(create-actor, create-actor*): Updated to remove argument of
from-actor and update argument calls to %create-actor.
(self-destruct): Use *hive-channel* parameter.
* demos/actors/botherbotherbother.scm:
* demos/actors/robotscanner.scm:
* demos/actors/simplest-possible.scm: Update calls to create-actor and
remove bootstrap-actor references.
8sync/actors.scm
demos/actors/botherbotherbother.scm
demos/actors/robotscanner.scm
demos/actors/simplest-possible.scm