# Cannot achieve type-stability and get rid of allocations

**URL:** https://discourse.julialang.org/t/cannot-achieve-type-stability-and-get-rid-of-allocations/44548
**Category:** General Usage
**Created:** [August 8, 2020, 4:38am UTC](https://discourse.julialang.org/t/cannot-achieve-type-stability-and-get-rid-of-allocations/44548 "2020-08-08T04:38:57Z")
**Posts on this page:** 1
**Showing post:** 6

<div class="post-metadata">

### Author: ![kristoffer.carlsson](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kristoffer.carlsson/32/22_2.png) [@kristoffer.carlsson](https://discourse.julialang.org/u/kristoffer.carlsson)
#### Post date: [August 8, 2020, 11:19am UTC](https://discourse.julialang.org/t/cannot-achieve-type-stability-and-get-rid-of-allocations/44548/6 "2020-08-08T11:19:40Z")

</div>

You can wrap those variables in `Ref` s that you then mutate instead of rebinding.

---

_[View the full topic](https://discourse.julialang.org/t/cannot-achieve-type-stability-and-get-rid-of-allocations/44548)._
