# Var (float \*value) if I may?

**URL:** <https://forum.juce.com/t/var-float-value-if-i-may/10489>\
**Category:** General JUCE discussion\
**Created:** [May 23, 2013, 3:55pm UTC](https://forum.juce.com/t/var-float-value-if-i-may/10489 "2013-05-23T15:55:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![silveur](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/silveur/32/128_2.png) [@silveur](https://forum.juce.com/u/silveur)\
**Post date:** [May 23, 2013, 3:55pm UTC](https://forum.juce.com/t/var-float-value-if-i-may/10489/1 "2013-05-23T15:55:00Z")

</div>

hey Jules,  
What do you think of adding the float\* to the var object? it would allow any valueTree to hold float pointers.  
In my case It would be amazing as I intend to pass float pointers when writing a modulation matrix for the Seaboard.

So far I store the address of the input as an int and cast it back to float\* … Doesn’t sound so reliable…

Looking forward to hear from you  
Silvere

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://forum.juce.com/u/jules)\
**Post date:** [May 23, 2013, 4:23pm UTC](https://forum.juce.com/t/var-float-value-if-i-may/10489/2 "2013-05-23T16:23:25Z")

</div>

No… definitely not! The var object is very much a copy-by-value object. Perhaps you need to be using Value objects instead?

---

<div class="post-metadata">

**Author:** ![silveur](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/silveur/32/128_2.png) [@silveur](https://forum.juce.com/u/silveur)\
**Post date:** [May 24, 2013, 8:29am UTC](https://forum.juce.com/t/var-float-value-if-i-may/10489/3 "2013-05-24T08:29:44Z")

</div>

Oh right I see! thanks for the tip Jules
