diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2016-01-17 23:15:03 -0800 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2016-01-17 23:15:03 -0800 |
commit | 83d8299d2d966c39b4970828ff5743a5b05e3287 (patch) | |
tree | d2b0203d068b1c5651c58928c0f2fdf98d558789 /063wait.cc | |
parent | 94fed2020040cf469bd47c8890ed4e609e3ed561 (diff) | |
download | mu-83d8299d2d966c39b4970828ff5743a5b05e3287.tar.gz |
2562
We want to use the type 'recipe' for recipe *variables*, because it seems nicer to say `recipe number -> number` rather than recipe-ordinal, etc. To support this we'll allow recipe names to be mentioned without any type. This might make a couple of places in this commit more brittle. I'm dropping error messages, causing them to not happen in some situations. Maybe I should just bite the bullet and require an explicit :recipe-literal. We'll see.
Diffstat (limited to '063wait.cc')
-rw-r--r-- | 063wait.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/063wait.cc b/063wait.cc index ef3d30e5..888edcdf 100644 --- a/063wait.cc +++ b/063wait.cc @@ -6,7 +6,7 @@ :(scenario wait_for_location) recipe f1 [ 1:number <- copy 0 - start-running f2:recipe + start-running f2 wait-for-location 1:number # now wait for f2 to run and modify location 1 before using its value 2:number <- copy 1:number @@ -67,7 +67,7 @@ for (long long int i = 0; i < SIZE(Routines); ++i) { :(scenario wait_for_routine) recipe f1 [ 1:number <- copy 0 - 12:number/routine <- start-running f2:recipe + 12:number/routine <- start-running f2 wait-for-routine 12:number/routine # now wait for f2 to run and modify location 1 before using its value 3:number <- copy 1:number |