Named Enumerations

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
mdp
Enthusiast
Enthusiast
Posts: 115
Joined: Mon Apr 18, 2005 8:28 pm

Post by mdp »

Genius
(Fr34k=)
Killswitch
Enthusiast
Enthusiast
Posts: 731
Joined: Wed Apr 21, 2004 7:12 pm

Post by Killswitch »

@mdp

That's a pretty good explination, this feature would be pretty nice Fred!
~I see one problem with your reasoning: the fact is thats not a chicken~
ebs
Enthusiast
Enthusiast
Posts: 557
Joined: Fri Apr 25, 2003 11:08 pm

Re: Named Enumerations

Post by ebs »

I know that this dates back over 4 years, but I think it would be a great idea.

I use named enumerations frequently in Visual Basic. They make it easier to assign only one of the
enumerated values to a variable. You can declare a variable to be of the enumeration "type" and then
the enumerated values pop up in the auto-complete suggestions (VB calls it "Intellisense").

You can even preface the enumerated value with the name of the enumeration to make it obvious
exactly what the variable type is.

There are certainly workarounds to achieve almost the same thing, but named enumerations would make it a lot easier.
Christian Uceda
User
User
Posts: 67
Joined: Thu Jul 29, 2010 10:53 am

Re: Named Enumerations

Post by Christian Uceda »

I second this idea!
Post Reply