We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi.
This program in the Cpp target did not work as I expected:
target Cpp; main reactor(s: std::string = "Default", a:int=0) { reaction(startup) {= reactor::log::Info() << "Main: s=" <<s <<" a=" <<a; =} r = new R(s=s, a=a) } reactor R(s: std::string = "Default", a:int=0) { reaction(startup) {= reactor::log::Info() << "R: s=" <<s <<" a=" <<a; =} }
Output:
bin/Test -a 123 -s Hallo [INFO] R: s= a=123 [INFO] Main: s=Hallo a=123
I got the intended behavior by doing the following modification:
r = new R(s= {= std::string(s)=}, a=a)
The text was updated successfully, but these errors were encountered:
That is interesting it definitely looks like a bug. Thanks for reporting.
Sorry, something went wrong.
cmnrd
Successfully merging a pull request may close this issue.
Hi.
This program in the Cpp target did not work as I expected:
Output:
I got the intended behavior by doing the following modification:
The text was updated successfully, but these errors were encountered: