mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-11 00:36:20 +02:00
revert value-add
This commit is contained in:
parent
bf8a065be0
commit
84aeb74377
1 changed files with 3 additions and 3 deletions
|
@ -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