Skip to content

Module: call constructor via new thistype() #236

Open
@muzzel

Description

@muzzel

Add the possibility to call the constructor of the underlying class of a module using new thistype().
Example:

module MyModule
    static function getNew() returns thistype
        return new thistype()

class MyClass
    use MyModule

init
    MyClass obj = MyClass.getNew()

Please dont ask what i need this for, its complicated :/

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions