fjsc: display the proper namespace when using set_in.

db4
John Benediktsson 2011-08-24 15:20:51 -07:00
parent 363ca60191
commit 7e824af1f6
1 changed files with 5 additions and 0 deletions

View File

@ -127,9 +127,14 @@ Factor.prototype.using = function(v, next) {
factor.get_word("kernel", "using").execute(next); factor.get_word("kernel", "using").execute(next);
} }
var fjsc_repl = false;
Factor.prototype.set_in = function(v, next) { Factor.prototype.set_in = function(v, next) {
factor.cont.data_stack.push(v); factor.cont.data_stack.push(v);
factor.get_word("kernel", "set-in").execute(next); factor.get_word("kernel", "set-in").execute(next);
if (fjsc_repl) {
fjsc_repl.ps = '( ' + v + ' )';
}
} }
Factor.prototype.get_word = function(vocab,name) { Factor.prototype.get_word = function(vocab,name) {