-
Notifications
You must be signed in to change notification settings - Fork 25
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
return void, set field value #2
Comments
Hi. It is only support expressions. "a=b" is a statement. "void" returning expressions currently are not supported too. I know it will be bit ugly, but you can wrap "Write" with your method which return something. Mutation could be done with methods - "test.SetValue(23)" |
ok thanks, too bad statements would be usefull :) |
I really need this feature, so before I dig into the code to figure out how to add it, is there a strong reason why this is not supported? Thanks! |
Which one?
|
Sorry should have been clearer 😅 the void expressions. |
Actually not much. New methods for CSharpExpression a few changes in Binder and AotCompiler. I could try to implement it tomorrow. On the other hand, statements is a huge feature and in the near future I do not plan to implement it. |
If you could implement this, I would be extremely likely to use your lib :) Thanks for the fast responses btw! |
Cool! I'll try it out, thanks! |
The text was updated successfully, but these errors were encountered: