dgriffen
  • Joined on 2018-10-29
dgriffen commented on issue SoniEx2/rust.eventbus#1 2018-10-29 04:21:59 +01:00
Move cancellable to the type system and implement multi-parenting

Ah yes, having the macro generate an enum large enough for each type would probably work great. I'm not sure if Rust supports turning a ty into an ident though.

dgriffen commented on issue SoniEx2/rust.eventbus#1 2018-10-29 04:10:55 +01:00
Move cancellable to the type system and implement multi-parenting

Hook priorities is quite a large problem with the way this system is implemented. Rust really doesn't have a good built-in system for dynamic typing and downcasting which will have to be done in order to respect hook priorities since we'll be mixing up handlers a lot.

dgriffen commented on issue SoniEx2/rust.eventbus#1 2018-10-29 03:59:24 +01:00
Move cancellable to the type system and implement multi-parenting

This is the output produced when run with cargo test -- --nocapture

dgriffen created pull request SoniEx2/rust.eventbus#1 2018-10-29 03:57:23 +01:00
Move cancellable to the type system and implement multi-parenting
dgriffen pushed to dev/dgriffen/type-cancel at dgriffen/rust.eventbus 2018-10-29 03:56:11 +01:00
fedb32d242 collate cancelled
3c3e8754ad add multi-parenting
5b7b4f1e12 make cancellation a type property
dgriffen created repository dgriffen/rust.eventbus 2018-10-29 03:49:44 +01:00