# Slice from UInt8

**URL:** <https://forum.crystal-lang.org/t/slice-from-uint8/2071>\
**Category:** Help & Support\
**Created:** [May 6, 2020, 6:00am UTC](https://forum.crystal-lang.org/t/slice-from-uint8/2071 "2020-05-06T06:00:15Z")\
**Posts on this page:** 1\
**Page:** 2

<div class="post-metadata">

**Author:** ![Didactic.Drunk](https://avatars.discourse-cdn.com/v4/letter/d/eada6e/32.png) [@Didactic.Drunk](https://forum.crystal-lang.org/u/Didactic.Drunk)\
**Post date:** [May 15, 2020, 1:17am UTC](https://forum.crystal-lang.org/t/slice-from-uint8/2071/21 "2020-05-15T01:17:11Z")

</div>

> If you retain the slice and pass it around, it might crash your program or cause undefined behavior.

Isn’t that true of `StaticArray` or `struct` that returns a `Slice`?

To remedy this could a `no reference` property be part of a type? Or subtype? Or function call? I’m not sure how the compiler works or how the feature would be best implemented.

[Previous page](https://forum.crystal-lang.org/t/slice-from-uint8/2071.md?page=1)
