From 18c86c26f0726f68eabed2c48c67351cad26379b Mon Sep 17 00:00:00 2001 From: greg Date: Sun, 29 Apr 2018 20:54:45 -0700 Subject: [PATCH] Passing comp around --- schala-repl/src/language.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/schala-repl/src/language.rs b/schala-repl/src/language.rs index da2b120..ae41806 100644 --- a/schala-repl/src/language.rs +++ b/schala-repl/src/language.rs @@ -195,7 +195,10 @@ pub trait ProgrammingLanguageInterface { #[macro_export] macro_rules! pass_chain { ($state:expr, $($pass:path), *) => { - |text_input| { pass_chain_helper! { $state; text_input $(, $pass)* } } + |text_input| { + let mut comp = UnfinishedComputation::default(); + pass_chain_helper! { $state; text_input $(, $pass)* } + } }; }