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))))
|
isVarName(name = removeWhitespace(string(line, 0, p))))
|
||||||
{
|
{
|
||||||
Expr * e = parseString(string(line, p + 1));
|
Expr * e = parseString(string(line, p + 1));
|
||||||
Value *v = new Value(*state->allocValue());
|
Value & v(*state->allocValue());
|
||||||
v->mkThunk(env, e);
|
v.mkThunk(env, e);
|
||||||
addVarToScope(state->symbols.create(name), *v);
|
addVarToScope(state->symbols.create(name), v);
|
||||||
} else {
|
} else {
|
||||||
Value v;
|
Value v;
|
||||||
evalString(line, v);
|
evalString(line, v);
|
||||||
|
|
Loading…
Reference in a new issue