On Thu, Jul 09, 2009 at 02:03:43PM +0200, Uli Schlachter wrote: > Julien Danjou wrote: > > At 1247139117 time_t, Uli Schlachter wrote: > >>> Where exactly is that endless loop? I can't seem to find it. And > >>> frankly said, if you use looping tables for your widgets, you shouldn't > >>> be surprised :P > >> "You get what you deserve".. ok, you win > > > > Clearly. Somehow I wonder if luaA_isloop() is even worth keeping around. > > If you do bad stuff, you're screwed. We're not going to check everything > > the use does in Lua. We're not a sand box. > > A warn()ing is way more informative and easier to debug than awesome using > 100% > cpu. Plus I like sandboxes, it's a lot of fun to play with them... > > Uli
I just noticed, in luaA_wibox_newindex, the wibox already checks the widget table for whether it is a loop and prints a warning and returns without setting the widget table. So I'd say, in this regard we're absolutely save. -- GCS/IT/M d- s+:- a--- C++ UL+++ US UB++ P+++ L+++ E--- W+ N+ o-- K- w--- O M-- V PS+ PE- Y+ PGP+++ t+ 5 X+ R tv+ b++ DI+++ D+++ G+ e- h! r y+ Gregor Best
pgp7XZYVKsXDT.pgp
Description: PGP signature