Multiple instances of an enum inside an enum
#1

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.
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"
So whats the souce for this recipe guys?
Reply


Messages In This Thread
Multiple instances of an enum inside an enum - by Enforcer501 - 17.06.2013, 23:53
Respuesta: Multiple instances of an enum inside an enum - by JustBored - 18.06.2013, 00:03
Re: Multiple instances of an enum inside an enum - by Enforcer501 - 18.06.2013, 00:18
Re: Multiple instances of an enum inside an enum - by Enforcer501 - 18.06.2013, 14:04
Re: Multiple instances of an enum inside an enum - by ReVo_ - 18.06.2013, 14:31

Forum Jump:


Users browsing this thread: 1 Guest(s)