Posted 28 February 2013 - 12:37 AM
:edit: tagged unbug, as bubba pointed out the new behavior in 1.5 is consistent with what other lua interpreters say, including the ones on codepad.org and lua.org, so apparently 1.5 doesn't introduce a bug it couldn't possibly have introduced, it fixes a bug that it couldn't possibly have fixed. Which is still strange, and gonna continue to bother me, but isn't something dan or cloudy need to worry about unless they're just obsessed with the mystery of it.
noticed today a program I was working on earlier this month was not working anymore, on digging through to figure out why I discovered there's been a change in the behavior of string.gmatch between 1.481 and 1.5 (present from early 1.5 pre-releases through the current beta)
can be demonstrated by entering this at a lua prompt:
in 1.5+, it outputs…nothing.
string.match seems unaffected, just string.gmatch.
Very odd, not clear why this would have started happening, but it has.
noticed today a program I was working on earlier this month was not working anymore, on digging through to figure out why I discovered there's been a change in the behavior of string.gmatch between 1.481 and 1.5 (present from early 1.5 pre-releases through the current beta)
can be demonstrated by entering this at a lua prompt:
for e in ("a/b"):gmatch("^([^/]+)/?") do print(e) end
This should, and prior to 1.5, did, output
a
b
in 1.5+, it outputs…nothing.
string.match seems unaffected, just string.gmatch.
Very odd, not clear why this would have started happening, but it has.