[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: RE: local scope once again
- From: "Jerome Vuarand" <jerome.vuarand@...>
- Date: Tue, 12 Dec 2006 16:33:33 -0500
Maybe a token filter could detect that and issue warnings. Turning the warning off would just mean to remove the filter from the filter stack. For the warning propagation messages they could be callback closures bound to the "warning" filter when it is created. The same could be done for recoverable errors (here the definition of recoverable is up to the user).
> -----Message d'origine-----
> De : firstname.lastname@example.org
> [mailto:email@example.com] De la part de
> Luiz Henrique de Figueiredo
> Envoyé : 12 décembre 2006 16:10
> À : Lua list
> Objet : Re: local scope once again
> > I wouldn't mind getting a warning about the dual-localling of
> > variables (within the same scope level).
> Lua has no mechanism for warnings. Do you propose that
> lua_load and friends return non-zero in this case and a
> warning message on the stack? How would we turn warnings off?