mirror of
https://github.com/NixOS/nix
synced 2025-07-06 21:41:48 +02:00
* Allow function argument default values to refer to other arguments
of the function. Implements NIX-45.
This commit is contained in:
parent
310e605995
commit
5cabd47394
5 changed files with 51 additions and 39 deletions
|
@ -217,17 +217,17 @@ unsigned int ATermMap::size()
|
|||
|
||||
void printATermMapStats()
|
||||
{
|
||||
cout << "RESIZES: " << nrResizes << " "
|
||||
cerr << "RESIZES: " << nrResizes << " "
|
||||
<< sizeTotalAlloc << " "
|
||||
<< sizeCurAlloc << " "
|
||||
<< sizeMaxAlloc << endl;
|
||||
|
||||
cout << "SET: "
|
||||
cerr << "SET: "
|
||||
<< nrItemsSet << " "
|
||||
<< nrSetProbes << " "
|
||||
<< (double) nrSetProbes / nrItemsSet << endl;
|
||||
|
||||
cout << "GET: "
|
||||
cerr << "GET: "
|
||||
<< nrItemsGet << " "
|
||||
<< nrGetProbes << " "
|
||||
<< (double) nrGetProbes / nrItemsGet << endl;
|
||||
|
|
|
@ -50,6 +50,11 @@ public:
|
|||
|
||||
ATerm get(ATerm key) const;
|
||||
|
||||
ATerm operator [](ATerm key) const
|
||||
{
|
||||
return get(key);
|
||||
}
|
||||
|
||||
void remove(ATerm key);
|
||||
|
||||
unsigned int size();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue