savi-lang / savi

A fast language for programmers who are passionate about their craft.
BSD 3-Clause "New" or "Revised" License
154 stars 12 forks source link

Add `String.take_buffer` and `Bytes.take_buffer`. #425

Closed jemc closed 1 year ago

jemc commented 1 year ago

This removes the buffer from the original instance and gives it to a new instance, which can be lifted to iso because it's known that no other non-tag reference to that pointer exists.