[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: RE: converting lua functions to strings
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Tue, 26 Nov 2002 10:39:26 -0200
>> (function(x) return x end) ("foo")
>
>Doesn't this syntax trim parameters to the first one only ?
You mean results, not arguments. No, it doesn't. For this you'd have to
wrap the complete call:
((function(x) return x end) ("foo"))
In other words, (f(x,y,z)) does trim the results to the first one.
--lhf