lua-users home
lua-l archive

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


Alex,

Thanks for your swift response.

> instead of 
>     co_1 = coroutine.create(function () person:display() end) try
>      co_1 = coroutine.create(function ()
> pcall(person.display, person) end) and so on. 
> 
> Is the output the same as before?
>  
> Alex
> 

No it isn't!

It reads like ...
-------------------------------
>>
nil
nil
<person>
<<
nil
nil
<person>
-
+
-
+
-
+
-
<object>
+
-
+
true
true    9227465
-------------------------------

That's consistent with your remark. The first coroutine will finish
regardless of the time-out. That's not very nice indeed.

At least I understand the 'dificult' part now before jumping into lots of
work. That was the original intent of my post.

So, thanks again.

Wilfried Verachtert

--------------------------------------------------------------------
mail2web - Check your email from the web at
http://mail2web.com/ .