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

Algorithm return arc is not passed to dataflow function #30

Open
JustusAdam opened this issue Feb 8, 2019 · 0 comments
Open

Algorithm return arc is not passed to dataflow function #30

JustusAdam opened this issue Feb 8, 2019 · 0 comments
Labels

Comments

@JustusAdam
Copy link
Member

JustusAdam commented Feb 8, 2019

I wrote a short test for recursion where the entire algorithm only consists of calling the recursive function.

This means after compilation that the recursion operator recur is the last operator in the algorithm, in the sense that its output arc is the output of the #[ohua] invokation itself.

However when I attempt to run this my generated recur_1 function is missing an argument. more precisely it is missing the argument for the channel into which it is supposed to send the result of the computation.
I was able to work around by simply wrapping the entire thing in a ohua::lang::id call, after which the missing argument was correctly provided.

@JustusAdam JustusAdam added the bug label Feb 8, 2019
JustusAdam added a commit that referenced this issue Feb 8, 2019
Found the reason for the missing argument, see #30, and a workaround
Fixed the return type of `recur_n` and the order of the arguments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant