diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2015-09-30 00:07:33 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2015-09-30 01:01:34 -0700 |
commit | a0fc38c9e1584960ecad0eb8d58a5d4e6995ad87 (patch) | |
tree | 4a2c9a8120ea6d59dd371b575b0d1215a2c6aaaf /045space_surround.cc | |
parent | c6b3b04ac85f05065fef9626270d914dc4428484 (diff) | |
download | mu-a0fc38c9e1584960ecad0eb8d58a5d4e6995ad87.tar.gz |
2218 - check types in instructions much earlier
Front-loads it a bit more than I'd like, but the payoff is that other recipes will now be able to describe the type checks right next to their operation. I'm also introducing a new use of /raw with literals to indicate unsafe typecasts.
Diffstat (limited to '045space_surround.cc')
-rw-r--r-- | 045space_surround.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/045space_surround.cc b/045space_surround.cc index fee7ef71..68d23c93 100644 --- a/045space_surround.cc +++ b/045space_surround.cc @@ -9,8 +9,8 @@ recipe main [ 10:number <- copy 5 # pretend array 20:number <- copy 5 # pretend array - default-space:address:array:location <- copy 10 - 0:address:array:location/names:dummy <- copy 20 # later layers will explain the /names: property + default-space:address:array:location <- copy 10/raw + 0:address:array:location/names:dummy <- copy 20/raw # later layers will explain the /names: property 1:number <- copy 32 1:number/space:1 <- copy 33 ] |