[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Looking for code samples using goto and labels
- From: Andres Perera <andres.p@...>
- Date: Sun, 24 Feb 2013 14:20:15 -0430
On Sun, Feb 24, 2013 at 3:00 AM, KHMan <keinhong@gmail.com> wrote:
> Hi all,
>
> Does anyone have Lua 5.2 code that use 'goto'? (Regretfully, I have been
> real tardy about moving my own code towards 5.2...)
lua isn't different enough to warrant skipping other imperative
languages when looking for examples
when i look at plan 9 code (mainly C), i see many instances where a
whole function is a loop, and instead of wrapping it in an
superficially indented `while' body, gotos are used
taking that in account, i've modified my personal style so that
control statements are for indentation--and more importantly,
highlighting--and labels and gotos are a space economic alternative
when i approach it that way, it's not just lua, but perl, and c, and
c++, and....
>
> I am looking to collect a few snippets from freely available code as
> real-world samples for use as Scintilla/SciTE test cases.