docs(3p/nix/libexpr): Add some comments about function calls
These were things that took me a moment to realise.
This commit is contained in:
parent
d27c722e9e
commit
bca0e34859
2 changed files with 10 additions and 5 deletions
3
third_party/nix/src/libexpr/nixexpr.hh
vendored
3
third_party/nix/src/libexpr/nixexpr.hh
vendored
|
|
@ -200,10 +200,11 @@ struct ExprList : Expr {
|
|||
|
||||
struct Formal {
|
||||
Symbol name;
|
||||
Expr* def;
|
||||
Expr* def; // def = default, not definition
|
||||
Formal(const Symbol& name, Expr* def) : name(name), def(def){};
|
||||
};
|
||||
|
||||
// Describes structured function arguments (e.g. `{ a }: ...`)
|
||||
struct Formals {
|
||||
typedef std::list<Formal> Formals_;
|
||||
Formals_ formals;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue