How does the procedure with a generic enumeration parameter look like?

Status
Not open for further replies.

zoidberg

Newbie level 1
Joined
Sep 10, 2008
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,288
Hey,

in trying to implement a generic procedure which has the ability to modify the current state.

it looks like procedure(FSM_NEXT_STATE, NEW_STATE)

the problem is the encoding and the type.
Im trying an approach to convert the state into an integer , change that value and convert back to the state type. It this a useful way?

how does procedure with a generic enumeration parameter has to look? I know how it looks with a specific unconstrained vector. But not if the type is unknown. Is this possible?

thanks
Bernhard
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…