Re: "continue" construct in Lua loops
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: "continue" construct in Lua loops
- From: Asko Kauppi <askok@...>
- Date: 2006年12月21日 21:26:42 +0200
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Well,
as I briefly mentioned some weeks back, at least i wasn't able to
crack the continue case into a token filter. In fact, I think it does
not suit filtering at all. VERY interested if someone succeeds;
please do.
We all do know there's a patch, right? http://lua-users.org/wiki/
LuaPowerPatches
- -asko
Javier Guerra kirjoitti 21.12.2006 kello 15.32:
On Thursday 21 December 2006 8:21 am, Roberto Ierusalimschy wrote:
Is there a more elegant way?
No :( (At least you can be confident that the generated opcode is
as good as for a primitive continue ;)
i guess both metalua's and token filter's wizards will soon present
their
solutions.
but this is not the first time this has been discussed. i beleive
there was a
serious semantic problem; but i can't remember it now
i'd really wish there was a 'continue' statement, in fact i've been
using deep
if's, for me the 'break out of repeat' construct is an improvement!!
--
Javier
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)
iD8DBQFFit/0GJtHlJZfjQoRAgPWAJ0ce2TZif482tdl7IfGuBZKacJY6QCglV2Y
fwOeCOGlyAD36erCfT1Il0Y=
=X8Ds
-----END PGP SIGNATURE-----