lua-users home
lua-l archive

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


On Mon, Sep 08, 2008 at 06:03:13PM -0500, Fabio Mascarenhas wrote:
> "...something like io.popen or whatever with some work" is a little
> bit of an understatement :-), see
> http://msdn.microsoft.com/en-us/library/ms682499(VS.85).aspx on how to
> do it.

Thanks for the pointers and advice everybody.  Ultimately I ended up
following this MSDN article, since I needed to implement io.popen like
this as well.  Works like a charm.

-- 
Taylor Venable            http://real.metasyntax.net:2357/

foldr = lambda f, i, l: (len(l) == 1 and [f(l[0], i)] or
                         [f(l[0], foldr(f, i, l[1:]))])[0]