libexpr: make thunk state shareable
this is a strong prerequisite for making values themselves copyable without duplicating evaluation side effects. with this we can treat `Value` the way we treated `Value *` to date and drop indirections. Change-Id: I08f30d12697614a3ae7149615f6f1da83b13f52b
This commit is contained in:
@@ -11,7 +11,7 @@ namespace nix {
|
||||
ExprBlackHole eBlackHole;
|
||||
|
||||
static Env nullEnv;
|
||||
Value::Thunk Value::blackHole{&nullEnv, &eBlackHole};
|
||||
Value::Thunk Value::blackHole{{&nullEnv}, &eBlackHole};
|
||||
|
||||
// FIXME: remove, because *symbols* are abstract and do not have a single
|
||||
// textual representation; see printIdentifier()
|
||||
|
||||
Reference in New Issue
Block a user