View Single Post
Senior Member
Join Date: Nov 2015
Old 06-27-2020 , 04:33   Re: Enum Structs Available This Holiday Season
Reply With Quote #42

Originally Posted by AdRiAnIlloO View Post
Right, it seems you can't use same enum struct inside one's definition. Though you also need to always prefix members with this. (so a.this in your example), otherwise it's an error.

Also, I wanted to suggest. I think enum structs should support constructors, I guess it would be easy since they allow for normal functions already, and it would be the most natural next-step for me. In relation to this, the fact that methodmaps have constructors already wouldn't be a reason for not making same on enum structs - methodmaps can't contain member variables.

Once this is done, enum structs will be much more valuable.
this.a (which means this STest.a), not a.this

Last edited by MAGNAT2645; 06-27-2020 at 04:34.
MAGNAT2645 is offline