# Stack allocated strings

**URL:** <https://ziggit.dev/t/stack-allocated-strings/17289>\
**Category:** Brainstorming\
**Tags:** memory-management\
**Created:** [August 19, 2026, 10:28am UTC](https://ziggit.dev/t/stack-allocated-strings/17289 "2026-08-19T10:28:13Z")\
**Posts on this page:** 1\
**Showing post:** 28

<div class="post-metadata">

**Author:** ![psznm](https://ziggit.dev/user_avatar/ziggit.dev/psznm/32/8377_2.png) [@psznm](https://ziggit.dev/u/psznm)\
**Post date:** [October 9, 2026, 1:23pm UTC](https://ziggit.dev/t/stack-allocated-strings/17289/28 "2026-10-09T13:23:20Z")

</div>

That is very interesting. I [was under the impression](https://ziggit.dev/t/static-comptime-variable-preserve-state-between-two-comptime-function-calls/17691) that no information can be preserved between two calls of the same comptime function. I guess `inline` was the piece I was missing.

---

_[View the full topic](https://ziggit.dev/t/stack-allocated-strings/17289)._
