Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^12: a State machine with Roles - possible? (class or instance)

by mascip (Pilgrim)
on Jun 01, 2013 at 11:13 UTC ( #1036417=note: print w/replies, xml ) Need Help??


in reply to Re^11: a State machine with Roles - possible? (class or instance)
in thread a State machine with Roles - possible?

Eventually, an example with 2 doors later in this thread. It has 2 doors that can be opened/closed, and locked/unlocked.

The same could be achieved with only 2 Roles (CanBe::Opened, CanBe::Locked), which would each have a state. But still, i'm happy to have learned how to unapply a Role.

  • Comment on Re^12: a State machine with Roles - possible? (class or instance)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1036417]
help
Chatterbox?
NodeReaper gets another author to use Module::Build

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (7)
As of 2017-08-23 19:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Who is your favorite scientist and why?



























    Results (356 votes). Check out past polls.

    Notices?