Skip to content

Comments

wxLua Compatibility with Lua 5.5#157

Open
KritzelKratzel wants to merge 1 commit intopkulchenko:masterfrom
KritzelKratzel:lua55
Open

wxLua Compatibility with Lua 5.5#157
KritzelKratzel wants to merge 1 commit intopkulchenko:masterfrom
KritzelKratzel:lua55

Conversation

@KritzelKratzel
Copy link

Updated several binding and sample scripts to comply with Lua 5.5's stricter enforcement of read-only loop control variables. Also moved to new GC constants.

Key changes:

  • Refactored for line in io.lines() and for k in gmatch() loops to use a separate local variable for transformations.
  • Fixed attempt to assign to const variable errors in:
    • wxLua bindings (any-bind-sync, genwxbind, stc-bind-sync)
    • Samples (editor, wxluasudoku)
  • Applied new GC constants
    LUA_GCSETPAUSE -> LUA_GCPARAM, LUA_GCPPAUSE
    LUA_GCSETSTEPMUL -> LUA_GCPARAM, LUA_GCPSTEPMUL

This ensures the build system and samples remain functional across Lua 5.1 to 5.5.

Updated several binding and sample scripts to comply with Lua 5.5's
stricter enforcement of read-only loop control variables. Also moved
to new GC constants.

Key changes:
- Refactored 'for line in io.lines()' and 'for k in gmatch()' loops
  to use a separate local variable for transformations.
- Fixed 'attempt to assign to const variable' errors in:
    - wxLua bindings (any-bind-sync, genwxbind, stc-bind-sync)
    - Samples (editor, wxluasudoku)
- Applied new GC constants
  LUA_GCSETPAUSE   -> LUA_GCPARAM, LUA_GCPPAUSE
  LUA_GCSETSTEPMUL -> LUA_GCPARAM, LUA_GCPSTEPMUL

This ensures the build system and samples remain functional across
Lua 5.1 to 5.5.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant