pike.git / lib / modules / Val.pmod

version» Context lines:

pike.git/lib/modules/Val.pmod:119:   //! if (objectp(something) && something->is_val_true) ...   //! @endcode   //!   //! and   //!   //! @code   //! if (objectp(something) && something->is_val_false) ...   //! @endcode   //!   //! respectively. See @[Val.null] for rationale. + //! + //! @note + //! Pike natively uses integers (zero and non-zero) as booleans. These + //! objects don't change that, and unless there's a particular reason + //! to use these objects it's better to stick to e.g. 0 and 1 for + //! boolean values - that is both more efficient and more in line with + //! existing coding practice. These objects are intended for cases + //! where integers and booleans occur in the same place and it is + //! necessary to distinguish them.      //! @class Null   //! Type for the @[Val.null] object. Do not create more instances of   //! this - use @[Val.null] instead.      constant Null = Builtin.Null;      //! @endclass      Null null = Null();