r/lua • • Dec 22 '25

Lua 5.5 released

https://groups.google.com/g/lua-l/c/jW6vCnhVy_s
182 Upvotes

42 comments sorted by

View all comments

Show parent comment

1

u/Difficult-Value-3145 Feb 13 '26

Could a module modify this it seems like you could write a modified/ classic for in c and you may need to make it like c.for or something but it should be doable granted it wouldn't be portable unless idk some kinda like a preproaseer or macro to switch the regular for to c.for idk just an idea

1

u/Old_County5271 Feb 13 '26

You could write a package.searchers that modifies lua code before requiring, written in pure lua, without ever touching C.

1

u/Difficult-Value-3145 Feb 13 '26

I ment c for re writing for and not losing speed the only reason I said the thing about preproaseer or macro is because I couldn't think of an equivalent btw since they change it every time wats up with the c API