Nim icon indicating copy to clipboard operation
Nim copied to clipboard

Feat: stdlib: adds `system.string.setLenUninit`

Open ZoomRmc opened this issue 7 months ago • 2 comments

Adds system.setLenUninit for the string type. Allows setting length without initializing new memory on growth.

  • Required for a follow-up to #15951
  • Accompanies #22767 (ref #19727) but for strings
  • sysstr housekeeping:
    • Removed redundant len and reserved sets already performed by prior rawNewStringNoInitcalls.

ZoomRmc avatar Apr 02 '25 22:04 ZoomRmc