lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


It's said that it's not necessary to have forward declarations, but then what's wrong with this:

    v = m1

    function m1 ()
        print ("hello world")
    end

    v()

But this works:

    function m1 ()
        print ("hello world")
    end

    v = m1

    v()