Comments (9)
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)"
from csharp-eval-unity3d.
ok thanks, too bad statements would be usefull :)
from csharp-eval-unity3d.
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!
from csharp-eval-unity3d.
I really need this feature
Which one?
- Action expressions (void return type)
- Statements
from csharp-eval-unity3d.
Sorry should have been clearer 😅 the void expressions.
from csharp-eval-unity3d.
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.
from csharp-eval-unity3d.
If you could implement this, I would be extremely likely to use your lib :) Thanks for the fast responses btw!
from csharp-eval-unity3d.
I have updated NuGet package to version 2.2.0 where Action delegates are supported.
Or you could build from sources 4c49d86. Or wait for Unity Asset Store update.
from csharp-eval-unity3d.
Cool! I'll try it out, thanks!
from csharp-eval-unity3d.
Related Issues (11)
- does it support multiline? when i write ; it throws error HOT 2
- Allow for more than 4 arguments? HOT 1
- MethodCallSignature hash code issues HOT 1
- run string as code
- Matching functionality with Linq Eval HOT 1
- Exception HOT 4
- The expression of "1 == 2 ? Random.Range(0, 1) : 3" results in a parser exception HOT 3
- CSharpExpression.Execute doesn't recognize passed-in known types HOT 5
- error when export variable name start with "as" or "is" HOT 4
- cannt discovery test HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from csharp-eval-unity3d.