Giter Site home page Giter Site logo

Comments (4)

acki-m avatar acki-m commented on August 18, 2024

So your first question is, whether it is allowed to register your reflection data also outside of RTTR_REGISTRATION inside any arbitrary code section?
Yes, it is possible, but I don't see the benefit of it. What is you actual use case?
At the moment the registration process has not mutex, so it is not thread safe, but when everything is called with RTTR_REGISTRATION, it is.

Yes, sure no problem.
Remark, what is not possible is: Having the same class multiple times in the class hierarchy. E.g:

- base
   *- derived: base
- master : derived_1, base

Register Class Hierarchy

from rttr.

hydexon avatar hydexon commented on August 18, 2024

Thanks you for the aclaration of the second one, regarding the first one...

My entity system framework relied some Reflect tricks to make the Component class lightweight enough due those components are pre-allocated in a cache-coherent memory pool, so when you call an "Component" class from RTTR in reality you're calling the proxy classes.

Also another possiblity is i create a class, but there's no reflection yet, until i call an function which does this later, the reflected type will not be visible to RTTR until i call that function.

from rttr.

acki-m avatar acki-m commented on August 18, 2024

Does 1) Answer your question?
Yes, you can defer the registration process, but you have to make sure you are not register multiple types at the same time.
Otherwise I not yet understand your question.

from rttr.

hydexon avatar hydexon commented on August 18, 2024

Alright, thats all what i need, Thanks you for your quick response. sorry about the confusion, my english isn't my main language.

from rttr.

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.