lua-users home
lua-l archive

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


On Tue, Nov 22, 2011 at 4:17 PM, Daurnimator <quae@daurnimator.com> wrote:
> On 22 November 2011 16:05, Dimiter "malkia" Stanev <malkia@gmail.com> wrote:
>> Look interresting...
>>
>> Do you plan on releasing this with some license?
>>
>> Is it okay if I put in my project (same license as lua and luajit)?
>>
>
> Consider the above snippet under MIT license :)
>
> If people like it; I suggest that it is only used once between
> projects and dependacies:
> I had to use a special unique value (err_signifier) to differentiate
> between normal yields and error-yields:
> If a project has 2 different version of the library in the project;
> errors thrown with one will not be caught with the other.
>
> D
>
>

I suppose this is where symmetric coroutines would be useful.
yield(error, "blah").

Interesting idea nonetheless I might have a play when I get home.