https://toitlang.org/ logo
Alternatively, you can add the individual entries ...
# general
f
Alternatively, you can add the individual entries in your constructor.
Copy code
class Mode:
  static FOO ::= Mode.internal_ 0x441 "FOO"
  static modes_ ::= {:}
  constructor.internal_ id/int name/string:
    // initialize the fields.
    ...
    modes_[id] = this