1
0
Fork 0
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:
Eelco Dolstra 2006-05-08 12:52:47 +00:00
parent 310e605995
commit 5cabd47394
5 changed files with 51 additions and 39 deletions

View file

@ -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;

View file

@ -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();