icydee / FSA-Engine

A Moose Role to convert an object into a Finite State Machine.
3 stars 0 forks source link

Order of transitions not deterministic #1

Open clkao opened 12 years ago

clkao commented 12 years ago

Hi,

It seems the transition table is a plain hash, so the order of the transition objects are tested is not deterministic. It's probably better to use a arrayref to maintain order for transitions from a single state?

icydee commented 12 years ago

Yes that is true, I could probably make the transition an arrayref, structured to look like a hashref, and make this an option.