Contains standard libraries for ZenCode.
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

ImmutableLiveBool.zs 385B

12345678910111213141516
  1. import listeners.DummyListenerHandle;
  2. export class ImmutableLiveBool {
  3. public const TRUE = new ImmutableLiveBool(true);
  4. public const FALSE = new ImmutableLiveBool(false);
  5. val value as bool : get;
  6. private this(value as bool) {
  7. this.value = value;
  8. }
  9. public implements LiveBool {
  10. addListener(listener) => new DummyListenerHandle<LiveBool.Listener>`unique(listener);
  11. }
  12. }