about summary refs log tree commit diff
path: root/nix
diff options
context:
space:
mode:
authorGriffin Smith <root@gws.fyi>2022-10-09T17·18-0400
committerclbot <clbot@tvl.fyi>2022-10-10T15·34+0000
commit0b06d946062f254d8e097f7a0a0ad308b159d739 (patch)
tree766fa8b75339662af9a6463886edf7b5380783ee /nix
parentba8ec1910bf2527eb290c128a04c23f42ec6a3bb (diff)
refactor(tvix/eval): Abstract away calling functions r/5077
The process of calling a function from a builtin, especially if it's got
more than 1 arrgument, is reasonably involved and easy to get wrong due
to having to interact directly with the stack - instead of having that
done entirely manually in builtins, this wraps it up in a new
`call_with` function which handles pushing arguments onto the stack and
recursively calling the (partially applied) function.

Change-Id: I14700c639a0deca53b9a060f6d70dbc7762e9007
Reviewed-on: https://cl.tvl.fyi/c/depot/+/6910
Autosubmit: grfn <grfn@gws.fyi>
Reviewed-by: tazjin <tazjin@tvl.su>
Tested-by: BuildkiteCI
Diffstat (limited to 'nix')
0 files changed, 0 insertions, 0 deletions