C
C#2y ago
boom

❔ Variable Access-Manipulation ?

Is there a way to have a variable constantly point to another variables value without being in a threaded/tasked environment?
int main_global_val = 32;

int local_main = ref main_global_val; ?
// have local_main always refer to main_global_val's value
int main_global_val = 32;

int local_main = ref main_global_val; ?
// have local_main always refer to main_global_val's value
how could i do something like this?
3 Replies
vdvman1
vdvman12y ago
Add ref before the int local_main to make it into a ref local variable
Miya
Miya2y ago
This
Accord
Accord2y ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.