How it's defined:
    
    
        proc destroyCUI(self: auto) =
            self.conv.close()
            resetAttributes()
            3000.sleep()
        
        proc init(self: type CUI): CUI =
            new(result, destroyCUI)
    
    Run

How it's created:
    
    
        proc main =
     # ...blah-blah-blah...
            VoidDoctrine.init(CUI.init, token).feed(feeder)
        main()
        GC_fullCollect()
    
    Run

How it works: Compiling x64 by MinGW64 without any flags - finalizer ignored. 
Compiling x64 by MinGW64 with "-release" flag - finalizer works. Compiling x86 
by MinGW64 with "-release" flag - finalizer ignored.

Reply via email to