lua-users home
lua-l archive

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


Pcall is a protected call. Not exceptions, yes its similar but not the same thing.
And yes embedded applications was what it was designed for but that doesn't mean it can not includes some useful features that many other languages have.

On Wed, May 29, 2019 at 7:11 AM Frank Kastenholz <fkastenholz@verizon.net> wrote:


> On May 29, 2019, at 5:47 AM, Kurieita <devkurieita@gmail.com> wrote:
>
> Exceptions(try, catch, finally, [maybe even "else"]) can be done the same way honestly but using callback functions.

Pcall?

> That is one thing that Lua does not support which makes it impractical for real world applications unless you're doing embedding applications.

Um, isn’t “embedding applications” what Lua is designed for? (And I know of some very real world applications, that are much more than “embedding applications”, in Lua that work quite well without classes.)

Frank Kastenholz