[DiscordArchive] <@!402557126544982050> what about `enum EnumType : uint32` ?
[DiscordArchive] <@!402557126544982050> what about `enum EnumType : uint32` ?
Archived author: Shin • Posted: 2021-03-17T17:45:07.338000+00:00
Original source
<@!402557126544982050> what about `enum EnumType : uint32` ?
Archived author: Claudiodfc • Posted: 2021-03-17T17:45:30.621000+00:00
Original source
let me see
Archived author: Claudiodfc • Posted: 2021-03-17T18:04:23.319000+00:00
Original source
The enum is still unscopped
Archived author: Claudiodfc • Posted: 2021-03-17T18:04:34.667000+00:00
Original source
This is from Bjarne Stroutstrup's book: "‘Plain enums,’’ for which the enumerator names are in the same scope as the enum and
their values implicitly convert to integers"
Archived author: Claudiodfc • Posted: 2021-03-17T18:05:22.223000+00:00
Original source
Which means that these global scopped names will be giving warnings that can lead to "surprises"
Archived author: Claudiodfc • Posted: 2021-03-17T18:05:43.470000+00:00
Original source
One solution for bosses is just create a Smart Boss AI and ditch the hardcoded bosses