eirikblekesaune / VTM

VTM - system for Verdensteatret
0 stars 4 forks source link

add a section for slots inside definition #88

Open sensestage opened 7 years ago

sensestage commented 7 years ago

To keep them in one place, rather than define them on the fly in different parts of the code.

~queries = [ ... ], // or ~signals, ~returns?
~attributes = [ ... ], 
~slots = [
    \didFree -> { "I'm done".postln; },
    \didPrepare -> { ~parser.play }
];
sensestage commented 7 years ago

But perhaps you actually want to define the actions on state changes only when other code is set up.

eirikblekesaune commented 7 years ago

The concept of slots is still in a conception where it represent callbacks to state changes. IMO the concept has to evolve into a more generic concept for us to make something out of it.