[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: RE: global & unique
- From: Nodir Temirhodzhaev <tnodir@...>
- Date: Wed, 21 Apr 2004 13:57:59 +0400 (MSD)
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.)