Passing comp around

This commit is contained in:
greg 2018-04-29 20:54:45 -07:00
parent ac44df8d1e
commit 18c86c26f0

View File

@ -195,7 +195,10 @@ pub trait ProgrammingLanguageInterface {
#[macro_export] #[macro_export]
macro_rules! pass_chain { macro_rules! pass_chain {
($state:expr, $($pass:path), *) => { ($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)* }
}
}; };
} }