Giter VIP home page Giter VIP logo

Comments (7)

tommego avatar tommego commented on June 4, 2024

I Known I can use Handle to store on setter implement, and return handle to getter implement, but some times those foreign objects are initialized on c/c++code, and without setting property action, and that time it will return null value.

from wren.

tommego avatar tommego commented on June 4, 2024

image
Just like MatrixToFloatV function, it should return a foreign classe value named Float16,but there is no way to create Float16 foreign instance for Matrix's 0 slot.

from wren.

mhermier avatar mhermier commented on June 4, 2024

from wren.

tommego avatar tommego commented on June 4, 2024

You need an intermediate function to create a Color instance, so you can initialize it with the real value: foreign class Object { color { color_(Color.new()) } foreign color_(color) }

Thanks for your answer, this way work well for getter/setter!

from wren.

tommego avatar tommego commented on June 4, 2024

I actually need to implement my first post function at all..., but there is no way to create other foreign class object to slot 0 for my return value.

from wren.

mhermier avatar mhermier commented on June 4, 2024

from wren.

tommego avatar tommego commented on June 4, 2024

Can you elaborate. I don't understand what you mean

I‘am writing node editor with full wren codes, binding with raylib graphic engine.
image
I found new way to bind c++ foreign class to wren scripting env directly, I'll post new messages and questions for the future!

from wren.

Related Issues (20)

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.