lua-users home
lua-l archive

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


Another note on continue usage...

The primary case I find myself faking continue in Lightroom is loops of the
form:

    while true do repeat

        if not test_condition_1() then
            wait_for_semaphore_1()
            break -- continue
        end

        if not test_condition_2() then
            wait_for_semaphore_2()
            break -- continue
        end

        -- conditions 1 and 2 now hold

    until true end

This is a fairly stylized usage if that's of any relevance.

Mark