possible to turn bbGCNode * into class decl

About Monkey 2 Forums Monkey 2 Development possible to turn bbGCNode * into class decl

This topic contains 6 replies, has 2 voices, and was last updated by  codifies 2 years, 4 months ago.

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #5283

    codifies
    Participant

    if I have a bbGCNode* is it possible to find out if it is for a class and then if so get the decl info so I can call a method ?

    this possibly confused code is how far I have got…

    name=Unknown@6391376 where as p->typeName is as expected…. ???

    #5284

    Mark Sibly
    Keymaster

    What the hell are you trying to do?!?

    #5295

    codifies
    Participant

    call something if bbGCNode* points to a class with a specific method

    #5319

    Mark Sibly
    Keymaster

    What are you trying to achieve though? There may be an easier way to do it without reflection, or it could be done on the monkey2 side etc…

    #5321

    codifies
    Participant

    I’m wanting to see if a class contains a method and then call it from bbGC.cpp’s

    void destroy( bbGCNode *p )

    #5322

    codifies
    Participant

    only need to test for and execute (if it exists) one fixed prototype say:

    OnDestroy:Void()

    #5488

    codifies
    Participant

    guessing you don’t approve of finalisers then? pity would be handy to clean up none GC resources…

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

You must be logged in to reply to this topic.