[ET Trac] #2829: Piraha lookup ref issue
Steven R. Brandt
trac-noreply at einsteintoolkit.org
Fri Sep 13 13:11:26 CDT 2024
#2829: Piraha lookup ref issue
Reporter: Steven R. Brandt
Status: new
Milestone:
Version:
Type: bug
Priority: major
Component: Cactus
Flesh: Currently, lookup\_var returns a reference to the value of a var. When a unop is called, this has the effect of negating the value in the table. Thus:
```
$zip = 1
foo::xmin = -$zip
foo::xmax = $zip
```
This results in both xmin and xmax being set to the same value \(-1\). The fix is to have lookup\_var return a copy rather than a reference.
--
Ticket URL: https://bitbucket.org/einsteintoolkit/tickets/issues/2829/piraha-lookup-ref-issue
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.einsteintoolkit.org/pipermail/trac/attachments/20240913/17c896a7/attachment.htm>
More information about the Trac
mailing list