finally figure out how to hold closures
This commit is contained in:
parent
69f31db23b
commit
f805290a4b
8 changed files with 98 additions and 89 deletions
|
|
@ -14,7 +14,7 @@
|
|||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
/*
|
||||
|
||||
use crate::func::{FTable, Function, Args, Operation};
|
||||
use crate::vars::{VTable};
|
||||
use crate::segment::{Ctr, Ast, circuit, list_idx, list_append, new_ast};
|
||||
|
|
@ -27,7 +27,7 @@ pub fn get_append() -> Function {
|
|||
loose_syms: false,
|
||||
eval_lazy: false,
|
||||
args: Args::Lazy(-1),
|
||||
function: Operation::Internal(
|
||||
function: Operation::Internal(Box::new(
|
||||
|a: Ast, _b: Rc<RefCell<VTable>>, _c: Rc<RefCell<FTable>>| -> Ctr {
|
||||
let ptr = list_idx(a.clone(), 0);
|
||||
match ptr {
|
||||
|
|
@ -63,6 +63,6 @@ pub fn get_append() -> Function {
|
|||
}
|
||||
}
|
||||
}
|
||||
)
|
||||
))
|
||||
};
|
||||
}*/
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue