1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-09 12:06:01 +01:00

libexpr: Document {eval,maybeThunk} methods

This commit is contained in:
Robert Hensing 2024-08-13 21:09:11 +02:00 committed by Sergei Zimmerman
parent ab7feb3898
commit 71b27774f0
No known key found for this signature in database
2 changed files with 9 additions and 4 deletions

View file

@ -979,10 +979,6 @@ void EvalState::mkSingleDerivedPathString(const SingleDerivedPath & p, Value & v
});
}
/* Create a thunk for the delayed computation of the given expression
in the given environment. But if the expression is a variable,
then look it up right away. This significantly reduces the number
of thunks allocated. */
Value * Expr::maybeThunk(EvalState & state, Env & env)
{
Value * v = state.allocValue();