Replies: 1 comment 1 reply
-
|
The issue with external strings is they need to be guaranteed to exist for the lifetime of any Lua variable assigned to them. Once Scintilla reallocs a character pointer for example, any Lua string references to an old pointer become invalid and can cause memory access errors. Anyway, Textadept 13.0 alpha has an RC of Lua 5.5 for anyone that wants to try it out (the next alpha will have the final 5.5 version). I'm already taking advantage of the |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Since Textadept stays up to date with newer Lua versions (unlike a lot of projects stuck on 5.1) this update actually brings a couple of nice features, in addition to making the language a little safer. Here's the complete "new feature" list from the readme page:
One thing that comes to mind for me is that the external strings feature would make it viable to use
SCI_GETCHARACTERPOINTER/SCI_GETRANGEPOINTERfor really fast buffer access without having to run amemcpy. But I don't know if it's worth the effort of implementing that.From my cursory knowledge of the codebase and reading through the 5.4 incompatibilities I didn't see anything that is a major cause for concern as far as the upgrade goes.
Beta Was this translation helpful? Give feedback.
All reactions