mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-12-18 01:56:48 +02:00
staticenv should be With
This commit is contained in:
parent
c7e3d830c1
commit
c07edb1932
2 changed files with 2 additions and 2 deletions
|
@ -976,7 +976,7 @@ void mkPath(Value & v, const char * s)
|
|||
|
||||
inline Value * EvalState::lookupVar(Env * env, const ExprVar & var, bool noEval)
|
||||
{
|
||||
// std::cout << " EvalState::lookupVar" << std::endl;
|
||||
std::cout << " EvalState::lookupVar" << var << std::endl;
|
||||
|
||||
for (size_t l = var.level; l; --l, env = env->up) ;
|
||||
|
||||
|
|
|
@ -407,7 +407,7 @@ void ExprWith::bindVars(const std::shared_ptr<const StaticEnv> &env)
|
|||
attrs->show(std::cout);
|
||||
std::cout << std::endl;
|
||||
attrs->bindVars(env);
|
||||
auto newEnv = std::shared_ptr<StaticEnv>(new StaticEnv(false, env.get())); // also make shared_ptr?
|
||||
auto newEnv = std::shared_ptr<StaticEnv>(new StaticEnv(true, env.get())); // also make shared_ptr?
|
||||
std::cout << " ExprWith::bindVars 2" << std::endl;
|
||||
std::cout << " body: " << std::endl;
|
||||
body->show(std::cout);
|
||||
|
|
Loading…
Reference in a new issue