mirror of
https://github.com/NixOS/nix
synced 2025-06-28 17:51:15 +02:00
tryEval: Allocate true and false once
This commit is contained in:
parent
d71e74838a
commit
a865049c4f
3 changed files with 23 additions and 4 deletions
|
@ -187,10 +187,26 @@ public:
|
|||
Value vEmptyList;
|
||||
|
||||
/**
|
||||
* Null constant.
|
||||
* `null` constant.
|
||||
*
|
||||
* This is _not_ a singleton. Pointer equality is _not_ sufficient.
|
||||
*/
|
||||
Value vNull;
|
||||
|
||||
/**
|
||||
* `true` constant.
|
||||
*
|
||||
* This is _not_ a singleton. Pointer equality is _not_ sufficient.
|
||||
*/
|
||||
Value vTrue;
|
||||
|
||||
/**
|
||||
* `true` constant.
|
||||
*
|
||||
* This is _not_ a singleton. Pointer equality is _not_ sufficient.
|
||||
*/
|
||||
Value vFalse;
|
||||
|
||||
/** `"regular"` */
|
||||
Value vStringRegular;
|
||||
/** `"directory"` */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue