interactive.do_user_command and prompts should return resulting env

Bug #584842 reported by Matt Giuca
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mars
Triaged
Low
Matt Giuca

Bug Description

interactive.do_user_command take an Env, and perform evaluation (possibly updating env), but then throw it away. This means that if Mars is called with both -c and -i, the computation performed in the -c command is a) wasted (caching will be undone) and b) unusable (bound variables will be unbound).

Have both of these functions (most importantly, do_user_command) return an env, so the state is preserved. It may be necessary to thread and return more than just an env (an entire interactive state, so as to keep the localtable for example). Therefore maybe it's better to just add a new function to interactive which performs (optionally) both the do_user_command and prompts, preserving state between them.

Tags: interactive
Matt Giuca (mgiuca)
Changed in mars:
importance: Medium → Low
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.