diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2015-08-04 19:28:45 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2015-08-04 19:28:45 -0700 |
commit | 1ccbf38565f3297210f54819725ec896c4109831 (patch) | |
tree | 7e4bf51bfa0d2985ce79687285ce7af9aab3d6d1 /030container.cc | |
parent | e779af8508baa81443b3ad3c4d91e3f66e0b85c3 (diff) | |
download | mu-1ccbf38565f3297210f54819725ec896c4109831.tar.gz |
1931 - basic support for scrolling
Still need to fix all the todo's in edit.mu dealing with scrolling.
Diffstat (limited to '030container.cc')
-rw-r--r-- | 030container.cc | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/030container.cc b/030container.cc index 6159f3a0..54a0df1f 100644 --- a/030container.cc +++ b/030container.cc @@ -321,6 +321,25 @@ void insert_container(const string& command, kind_of_type kind, istream& in) { t.size = SIZE(t.elements); } +:(scenarios run) +:(scenario container_define_twice) +container foo [ + x:number +] + +container foo [ + y:number +] + +recipe main [ + 1:number <- copy 34 + 2:number <- copy 35 + 3:number <- get 1:foo, x:offset + 4:number <- get 1:foo, y:offset +] ++mem: storing 34 in location 3 ++mem: storing 35 in location 4 + //: ensure types created in one scenario don't leak outside it. :(before "End Globals") vector<type_ordinal> recently_added_types; @@ -359,7 +378,6 @@ Next_type_ordinal = 1000; //:: Allow container definitions anywhere in the codebase, but warn if you //:: can't find a definition. -:(scenarios run) :(scenario run_warns_on_unknown_types) % Hide_warnings = true; #? % Trace_stream->dump_layer = "run"; |