Giter Club home page Giter Club logo

Comments (5)

genotrance avatar genotrance commented on May 24, 2024

What should this translate to?

from nimterop.

zedeus avatar zedeus commented on May 24, 2024

Maybe ptr object? Not sure

from nimterop.

genotrance avatar genotrance commented on May 24, 2024

I've partially fixed this for the case where struct X is different from *Y. For example:

typedef struct X { ... } *Y

where X != Y.

If X == Y, we run into name clashes and that's being discussed at length on the Wiki.

from nimterop.

genotrance avatar genotrance commented on May 24, 2024

With the new plugin system, nimterop will now complain that _Kernel is an invalid symbol and will ask the user to handle it somehow.

User can either choose to rename _Kernel to Kernel which will then cause nimterop to complain that it's a duplicate. User then can choose to skip it which will result in neither _Kernel nor Kernel getting translated which will probably cause some other failure when Kernel is later referred to in the code.

The only correct way would be for them to rename _Kernel to cKernel or some other unique name that doesn't clash. They can do this with cPlugin:onSymbol().

from nimterop.

genotrance avatar genotrance commented on May 24, 2024

Closing this since plugin system is now shipping and _Kernel can be handled in multiple ways - skip or rename.

from nimterop.

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.