Thread
:
Enum Structs Available This Holiday Season
View Single Post
MAGNAT2645
Senior Member
Join Date: Nov 2015
Location: AlliedMods.net
06-27-2020 , 03:33 Re: Enum Structs Available This Holiday Season
#
42
Quote:
Originally Posted by
AdRiAnIlloO
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
03:34
.
MAGNAT2645
View Public Profile
Send a private message to MAGNAT2645
Find More Posts by MAGNAT2645