Skip to content

A Lua 5.x distribution with defer semantic support, like golang

Notifications You must be signed in to change notification settings

peete-q/lua-defer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lua-defer

A lua 5.x distribution with defer semantic support, like golang

##example

function foo()
    defer
        print 'defer 1'
    end

    do
        defer print 'defer 2' end
    end

    defer print 'defer 3' end

    print 'end'
end

###output

defer 2
end
defer 3
defer 1

About

A Lua 5.x distribution with defer semantic support, like golang

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published