Hi Tuomo!

Thanks for your help!

> On 2005-04-21, Stefan Reich�r <[EMAIL PROTECTED]> wrote:
>> The following works, but I get an error message:
>>
>> % ionflux -e 'mod_query.show_about_ion(ioncore.find_screen_id(0))'
>> Error: >> [string "return tostring(arg[1]())"]:1: bad argument #1 to 
>> `tostring' (value expected)
>
> Fixed.

Confirmed. :-)

>> And, is it possible to run a lua function and give a string result
>> back to the calling ionflux?
>
> You must 'return' the value.

Here is what I tried first:

% ionflux -e "ioncore.version()"
nil

I thought, the return value of the called function will be used
(coming from a lisp background).


And for reference, here is the way it works:

% ionflux -e "return ioncore.version()"
"3ds-20050116"


You can even use it as calculator: ;-)
% ionflux -e "return 7+3"
10



Stefan.

Reply via email to