From 1ccbf38565f3297210f54819725ec896c4109831 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Tue, 4 Aug 2015 19:28:45 -0700 Subject: 1931 - basic support for scrolling Still need to fix all the todo's in edit.mu dealing with scrolling. --- 030container.cc | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) (limited to '030container.cc') 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 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"; -- cgit 1.4.1-2-gfad0