• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Initializer ordering

Level 23
Joined
Apr 16, 2012
Messages
4,041
JASS:
library lib initializer init
    private function init takes nothing returns nothing
        call BJDebugMsg("library initializer")
    endfunction
endlibrary

scope scp initializer init
    private function init takes nothing returns nothing
        call BJDebugMsg("scope initializer")
    endfunction
endscope

struct s extends array
    private static method onInit takes nothing returns nothing
        call BJDebugMsg("struct initializer")
    endmethod
endstruct

module m
    private static method onInit takes nothing returns nothing
        call BJDebugMsg("module initializer")
    endmethod
endmodule

struct m_s extends array
    implement m
endstruct

function InitTrig_swefgr takes nothing returns nothing
    call BJDebugMsg("default wc3 initializer")
endfunction
Top