Update 'Enum Definitions'
parent
8d13a903d6
commit
6fd1fe0cfa
@ -2,20 +2,20 @@
|
||||
|
||||
```
|
||||
enum ro Weekday:Int
|
||||
sunday
|
||||
monday
|
||||
tuesday
|
||||
wednesday
|
||||
thursday
|
||||
friday
|
||||
- sunday
|
||||
- monday
|
||||
- tuesday
|
||||
- wednesday
|
||||
- thursday
|
||||
- friday
|
||||
|
||||
enum ro NamedColor:U32
|
||||
red 0xFF0000
|
||||
green 0x00FF00
|
||||
blue 0x0000FF
|
||||
- red: <0xFF0000>
|
||||
- green: <0x00FF00>
|
||||
- blue: <0x0000FF>
|
||||
```
|
||||
|
||||
Each line under an enum represents a member and is composed of a name, and an optional initialization value.
|
||||
Each line under an enum represents a member and is composed of a name, and an optional value.
|
||||
|
||||
Enum members are accessed similarly to object members:
|
||||
|
Reference in New Issue
Block a user