Skip to content

Comments

Have active classes automatically include the Actor trait#871

Open
EliasC wants to merge 1 commit intoparapluu:developmentfrom
EliasC:features/actor-trait
Open

Have active classes automatically include the Actor trait#871
EliasC wants to merge 1 commit intoparapluu:developmentfrom
EliasC:features/actor-trait

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