Coder Social home page Coder Social logo

Comments (9)

deniszykov avatar deniszykov commented on May 23, 2024

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.

friuns2 avatar friuns2 commented on May 23, 2024

ok thanks, too bad statements would be usefull :)

from csharp-eval-unity3d.

catdawg avatar catdawg commented on May 23, 2024

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.

deniszykov avatar deniszykov commented on May 23, 2024

I really need this feature

Which one?

  1. Action expressions (void return type)
  2. Statements

from csharp-eval-unity3d.

catdawg avatar catdawg commented on May 23, 2024

Sorry should have been clearer 😅 the void expressions.

from csharp-eval-unity3d.

deniszykov avatar deniszykov commented on May 23, 2024

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.

catdawg avatar catdawg commented on May 23, 2024

If you could implement this, I would be extremely likely to use your lib :) Thanks for the fast responses btw!

from csharp-eval-unity3d.

deniszykov avatar deniszykov commented on May 23, 2024

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.

catdawg avatar catdawg commented on May 23, 2024

Cool! I'll try it out, thanks!

from csharp-eval-unity3d.

Related Issues (11)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.