Boolean

From CometPublic

Jump to: navigation, search

The comet declaration

   Boolean x(true);

declares x as an instance of the builtin class Boolean. Like Java, comet provides wrappers around the scalar comet type bool. This class has the following API

   class Boolean {
      bool getValue();
      void setValue(bool);
      Event changes();
   }

Note that the changes event is triggered whenever the boolean instance is modified.