lua-users home
lua-l archive

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


Zimmermann, Maik wrote:
> the problem here is that you are using the same
> instance of pr in both coroutines. Try ...
Yes, it works (as internal local function).
But I want to do other thing.
There is an external function (loaded lua-chunk), which uses 
global variable "out" as file to output.
And new threads call this function, but outfile is different 
for each thread.
How to implement such thing?
(In 1 posting I showed how, but it's expensive.)