Repository navigation
Facade Improvements - #2595
Facade Improvements#2595RobertLeahy wants to merge 2 commits into
Conversation
ericniebler
left a comment
There was a problem hiding this comment.
i am ok with the first two commits, but i am not happy with the change in "Create Facade Tokens With __facade::__token". i know you want it for your tail recursion work, but this change is a significant complication to code that is already complicated. and tail recursion isn't standard, so nobody benefits from this change.
for the purpose of your proposal, i ask you to move that change out of this PR and maintain it in your own fork.
I had imagined the broader benefit being |
582f3b0 to
729937e
Compare
|
/ok to test 729937e |
The facade's walk constructs an algorithm's state with an archetype receiver, and expects the operations in it to be placeholders (__facade::__state_op_t). starts_on and continues_on (their schedule operations), the counting scopes' join (its schedule operation), and test_facade.cpp's t_schedule connected real operations instead. The above-mentioned now connect their operation through a member that returns the placeholder in a walk.
729937e to
01d44da
Compare
Algorithms that send stored values applied a lambda that calls __send to the tuple that holds them. __send_tuple(rcvr, tag, tuple) does that, and returns __send's token.
01d44da to
643f1e3
Compare
|
/ok to test 643f1e3 |
No description provided.