forked from lix-project/lix
revert value-add
This commit is contained in:
parent
bf8a065be0
commit
84aeb74377
|
@ -641,9 +641,9 @@ bool NixRepl::processLine(string line)
|
|||
isVarName(name = removeWhitespace(string(line, 0, p))))
|
||||
{
|
||||
Expr * e = parseString(string(line, p + 1));
|
||||
Value *v = new Value(*state->allocValue());
|
||||
v->mkThunk(env, e);
|
||||
addVarToScope(state->symbols.create(name), *v);
|
||||
Value & v(*state->allocValue());
|
||||
v.mkThunk(env, e);
|
||||
addVarToScope(state->symbols.create(name), v);
|
||||
} else {
|
||||
Value v;
|
||||
evalString(line, v);
|
||||
|
|
Loading…
Reference in a new issue