lua-users home
lua-l archive

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


On Dec 18, 2009, at 7:05 PM, Michal Kolodziejczyk wrote:

> This is interesting... That would be kind of dataflow programming:

Method chaining?

http://martinfowler.com/dslwip/MethodChaining.html

> Here is an example (but this assumes some form of object oriented programming):


local function f( t )
    print( t[ 1 ] )
    
    return f
end

f{1}{2}{3}

> 1
> 2
> 3