Giter Club home page Giter Club logo

Comments (14)

RealyUniqueName avatar RealyUniqueName commented on September 27, 2024

According to docs @:coreType abstracts should not have underlying type.

from haxe.

mockey avatar mockey commented on September 27, 2024

Yes, I know. But this causes the generator to hang.
@:coreType abstract NativeArray<T> hangs..
abstract NativeArray<T>(Dynamic) works.

from haxe.

RealyUniqueName avatar RealyUniqueName commented on September 27, 2024

Oh, now i get it )

from haxe.

mockey avatar mockey commented on September 27, 2024

The compiler just hangs when generating php, no error message or so.

from haxe.

RealyUniqueName avatar RealyUniqueName commented on September 27, 2024

Did you try adding @:runtimeValue? https://haxe.org/manual/cr-metadata.html

from haxe.

mockey avatar mockey commented on September 27, 2024

No. Is this a runtimeValue? I don't know.
But I have a similar setup, that runs with old genphp (with @:coreType and all).

from haxe.

RealyUniqueName avatar RealyUniqueName commented on September 27, 2024

Dynamic is a parametrized asbtract without underlying type. And it works:

@:coreType @:runtimeValue abstract Dynamic<T> {}

from haxe.

mockey avatar mockey commented on September 27, 2024

I tried @:coreType @:runtimeValue abstract NativeArray<T> and the compiler also hangs.
I'm not especially fond of @coreType, it's just that I used it without any problems before...

from haxe.

RealyUniqueName avatar RealyUniqueName commented on September 27, 2024

I think i know what's the reason. Will fix it later today.

from haxe.

RealyUniqueName avatar RealyUniqueName commented on September 27, 2024

I can't reproduce this bug. Can you provide a minimal example code?

from haxe.

mockey avatar mockey commented on September 27, 2024

Did you uncomment @coreType on NativeArray?
Or define any other @coreType abstract?

from haxe.

RealyUniqueName avatar RealyUniqueName commented on September 27, 2024

I did both

from haxe.

RealyUniqueName avatar RealyUniqueName commented on September 27, 2024

Nevermind. I tried again and reproduced this issue

from haxe.

RealyUniqueName avatar RealyUniqueName commented on September 27, 2024

Fixed in 51a9650

from haxe.

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.