# Pointers to Temporary Memory

**URL:** <https://ziggit.dev/t/pointers-to-temporary-memory/3177>\
**Category:** Docs\
**Tags:** memory-management, footgun\
**Created:** [February 8, 2024, 9:29pm UTC](https://ziggit.dev/t/pointers-to-temporary-memory/3177 "2024-02-08T21:29:05Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![dee0xeed](https://ziggit.dev/letter_avatar_proxy/v4/letter/d/3ab097/32.png) [@dee0xeed](https://ziggit.dev/u/dee0xeed)\
**Post date:** [February 12, 2024, 8:16pm UTC](https://ziggit.dev/t/pointers-to-temporary-memory/3177/7 "2024-02-12T20:16:09Z")

</div>

> [@AndrewCodeDev](#):
>
> This document needs more examples

I think [this is](https://ziggit.dev/t/runtime-mutating-and-passing-around-const-u8-character-strings/3186/23) a good one (I mean “this _ **does not work** _ - why ?”).  
Making a copy of an array on stack, slicing it and returning the slice.

---

_[View the full topic](https://ziggit.dev/t/pointers-to-temporary-memory/3177)._
