Skip to content

Static initializers don't work #7

Description

@zeen

static function __init__() { trace("X"); } in a class doesn't work.

A way of doing this would be to generate the init function as-is, and then call init for all classes which have it before the UIApplicationMain() in main.m. Ordering would still need to be figured out, based on which class refers to which class's properties in its static initializer.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions