Contains standard libraries for ZenCode.
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

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. }