BUG - static value lookup inconsistency

Comments

3 comments

  • Adrian Nelson

    The above looks correct to me because you have NOT inherited bar in foo, to do so you need to define foo as follows:

    function foo() : bar() constructor
    {

    ... rest of foo function as above

    }
    0
    Comment actions Permalink
  • Devon Mullane

    It's purposefully not a constructor.  Unless your suggestion for a fix is to avoid using functions in GML?  I'm a little flummoxed as to what you think the issue here is.  The problem is with static methods nested in functions, it literally has nothing to do with constructors.  At all.

    That said, if you misunderstood the post then perhaps someone else will as well.  May I ask what led you to believe this had anything to do with constructors, rather than static methods being looked up in the reverse order to static values?

    0
    Comment actions Permalink
  • Adrian Nelson

    ah - sorry I mis-understood what you were trying to demonstrate.

    0
    Comment actions Permalink

Please sign in to leave a comment.