Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Have active classes automatically include the Actor trait #871

Open
wants to merge 1 commit into
base: development
Choose a base branch
from

Conversation

EliasC
Copy link
Contributor

@EliasC EliasC commented Jul 27, 2018

The trait Actor is defined in the Std module, and defines
three methods: await, suspend, and run_attached_closure.
Automatically including this in active classes replaces the old
behaviour of implicitly defining the two former methods in active
classes.

The changelog looks big for such a change. This is because I also
fixed a bug that would incorrectly assume that a modeless,
trait-less, class was an active class (and thus included the
Actor trait). This means that the Main class now has to be
declared as active, which in some test cases, it was not.

The trait `Actor` is defined in the `Std` module, and defines
three methods: `await`, `suspend`, and `run_attached_closure`.
Automatically including this in active classes replaces the old
behaviour of implicitly defining the two former methods in active
classes.

The changelog looks big for such a change. This is because I also
fixed a bug that would incorrectly assume that a modeless,
trait-less, class was an active class (and thus included the
`Actor` trait). This means that the `Main` class now _has to_ be
declared as `active`, which some test cases did not.
@EliasC EliasC force-pushed the features/actor-trait branch from 8f06beb to 30828e6 Compare July 27, 2018 12:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant