mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-30 01:26:15 +02:00
Value: extract Value::Lambda
This commit is contained in:
parent
6af1d9f7b9
commit
7055c65285
1 changed files with 6 additions and 4 deletions
|
@ -199,6 +199,11 @@ public:
|
||||||
Value * left, * right;
|
Value * left, * right;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
struct Lambda {
|
||||||
|
Env * env;
|
||||||
|
ExprLambda * fun;
|
||||||
|
};
|
||||||
|
|
||||||
union
|
union
|
||||||
{
|
{
|
||||||
NixInt integer;
|
NixInt integer;
|
||||||
|
@ -216,10 +221,7 @@ public:
|
||||||
Value * smallList[2];
|
Value * smallList[2];
|
||||||
ClosureThunk thunk;
|
ClosureThunk thunk;
|
||||||
FunctionApplicationThunk app;
|
FunctionApplicationThunk app;
|
||||||
struct {
|
Lambda lambda;
|
||||||
Env * env;
|
|
||||||
ExprLambda * fun;
|
|
||||||
} lambda;
|
|
||||||
PrimOp * primOp;
|
PrimOp * primOp;
|
||||||
FunctionApplicationThunk primOpApp;
|
FunctionApplicationThunk primOpApp;
|
||||||
ExternalValueBase * external;
|
ExternalValueBase * external;
|
||||||
|
|
Loading…
Reference in a new issue