pike.git / lib / modules / Val.pmod

version» Context lines:

pike.git/lib/modules/Val.pmod:89:   //! integer, and @expr{"1"@} and @expr{"0"@} when cast to string. They   //! do however not compare as equal to the integers 1 and 0, or any   //! other values. @[Val.true] only compares (and hashes) as equal with   //! other instances of @[True] (although there should be as few as   //! possible). Similarly, @[Val.false] is only considered equal to   //! other @[False] instances.   //!   //! @[Protocols.JSON] uses these objects to represent the JSON   //! literals @expr{true@} and @expr{false@}.    - class Null + //! @class Null   //! Type for the @[Val.null] object. Do not create more instances of   //! this - use @[Val.null] instead. - { -  inherit Builtin.SqlNull; +     -  constant is_val_null = 1; -  //! Nonzero recognition constant. + constant Null = Builtin.Null;    -  protected string _sprintf (int flag) -  { -  return flag == 'O' && "Val.null"; -  } - } + //! @endclass      Null null = Null();   //! Object that represents a null value.   //!   //! In general, null is a value that represents the lack of a real   //! value in the domain of some type. For instance, in a type system   //! with a null value, a variable of string type typically can hold   //! any string and also null to signify no string at all (which is   //! different from the empty string). Pike natively uses the integer 0   //! (zero) for this, but since 0 also is a real integer it is