lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Is there any way to make two variables point to the same exact object,
as with references or typeglob assignment in Perl?

Example in Perl:
$a = 5;
*b = $a;
print $b; #prints 5
$a = 6;
print $b; #prints 6

I've tried messing with _G and all that, but no luck so far.