Typed variables: enumerations?

mjcoon

Well-Known Member
Licensed User
Hi all; back in May 2008 Erel said in response to a discussion about variants (held in string form) versus typed (integer) variables:

"The next major update will allow declaring regular variables in a specific type (local and global)."

But I don't see any mention of typing against the 6.80 Beta enhancements.

On the other hand I imagine that a new method of variable handling might be quite an extensive change...

When thinking about my use of a variable (in my mind an integer) to hold one of three values (-1; 0; +1) I wondered if it would be just as efficient at run time to use three string values which could be more descriptive of the three meanings. Which is to say, really, what I should be using is an enumeration.

A similar concept is the state variable which has named bits within a bit pattern. This is just an efficient boolean array that can be manipulated neatly because it is stored in a compact contiguous portion of memory.

Any chance of importing any of these foreign concepts?

Cheers, Mike.
 
Top