-
Hello, I found an error while using direct access variables. If a direct-access variable is used as an argument to output or intout, the direct-access variable cannot be returned modified. I've pasted the code here for easy presentation
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Hi, chen thank you for the report. I remember we were working on a similar issue recently. @volsa is this the same issue you were working on? |
Beta Was this translation helpful? Give feedback.
-
Hi @chen4s666 ,
should fix your issue. That being said, there is currently an issue on master which is being fixed with this PR. The PR should be merged soon-ish however. |
Beta Was this translation helpful? Give feedback.
Sorry, I had another issue on my mind which I confused with this one. VAR_OUTPUT in fact works for functions, but as you've correctly identified there's some logic missing to store back the results when using direct access in output assignments. This is definetly a bug and I've opened an issue for it. However, we happen to generate the correct code for FUNCTION_BLOCKs (at least in this branch), which you can use in the meantime until this issue fixed.