lua-users home
lua-l archive

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

It was thus said that the Great Roberto Ierusalimschy once stated:
> > I'd like to report back the results: we chickened out and didn't do
> > it. The end. :)
> Thanks for the feedback.
> Just in case, Lua 5.3 will have compile-time options for easily
> disabling these coercions (one for string->number, another for
> number->string), but the "standard" will be with coercions enabled.

  Could you possibly have three levels?

	1. Status quo
	2. Warn about coercions as they happen
	3. Disable coercions.

  #2 would be very helpful when trying to update the code to avoid
coercions.  Or, if that can't be done, a call to determine which "optional"
features are enabled/disabled.