Replies: 6 comments
-
This would require, at the very least, implementing the |
Beta Was this translation helpful? Give feedback.
-
Why should they be enums and not constants? |
Beta Was this translation helpful? Give feedback.
-
Or simply |
Beta Was this translation helpful? Give feedback.
-
enums be enums, but constant arrays are missing feature, that would also open gate to have constant arrays of structs that can be constant. |
Beta Was this translation helpful? Give feedback.
-
@MkazemAkhgary, see #688 |
Beta Was this translation helpful? Give feedback.
-
realted : #144 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Currently, there is no way of having a enumerable constants that are structs or floats.
It would be useful to define an enum with an underlying type of simple or complex types in order to assign standard or common complex values to fields.
Example:
enum Window : Rectangle
{
MinSize = { 400, 300, 0, 0 },
MaxSize = {600, 500, 0, 0 }
}
Beta Was this translation helpful? Give feedback.
All reactions