17.06.2013, 23:53
(
Last edited by Enforcer501; 18/06/2013 at 02:48 AM.
)
Alright, experimenting a bit but not really sure where to start. I'm wanting to create 5 instances of an enum inside of another enum for the sake of being organized.
Per-example, this is what I'm wanting to do. Now I know this naturally should return an error but bear in mind, this was only written as an example to help you understand the idea.
So whats the souce for this recipe guys?
Per-example, this is what I'm wanting to do. Now I know this naturally should return an error but bear in mind, this was only written as an example to help you understand the idea.
Code:
enum IDs_Enum // The enum I'd like to duplicate { MyID, YourID, OtherGuysID } enum Base_Enum { IDs_Enum[5], // Duplicating the enum 5 times per each Base_Enum instance OtherData, MoreData } new B_Enum[15][Base_Enum] ------------------------------- error 021: symbol already defined: "IDs_Enum"