Tiny reflection bug?

About Monkey 2 Forums Monkey 2 Development Tiny reflection bug?

This topic contains 1 reply, has 2 voices, and was last updated by  Mark Sibly 1 year, 5 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #11392

    Angus
    Participant

    mojo.app.Skin is a Class, but can’t have ExtendsType called on it, it seems?

    Produces this output, with the error appearing on the ExtendsType line:

    Class mojo.app.Skin

    Type ‘Unknown@10519360 Ptr’ is not a class or interface type

    This is hardly a problem – is easy to work around in my situation – but just in case it means anything sinister.

    Edit – the code posted just shows what happens, I’m not specifically trying to do this in my own program 😉

    #11400

    Mark Sibly
    Keymaster

    Pretty sure I know what’s going on here.

    Skin extends Resource which extends BBResource which…is a native class, and native classes cannot be reflected (yet?).

    There is a simple fix for this though that has unfortunately failed to make the v1.1.08 release of about half an hour ago! Oh well, next time…

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.