If Perl6 says "everything is an object" and blurs the distinction between int and INTEGER, provides transparent promotion to bignums and bigrats, etc., then where are we?
Consider today, if you have $a=$b; if $b holds an integer, than that's a scalar in Perl5 and this makes a new copy; subsequent changes to $b will not affect $a. But if $b holds a bignum class object, then the assignment makes a shared reference to the real object. Some handwaving in overloading mitigates this. But I see the issues getting worse in Perl6.
So, what's the current reasoning? Larry wrote about more transparent promotion of primitive to object than the boxing/unboxing of dotnet, but is that only leading us down the road to Java style value/reference inconsistancy?
—John
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Perl6 - value vs. reference issues
by hossman (Prior) on Sep 13, 2002 at 23:23 UTC | |
by John M. Dlugosz (Monsignor) on Sep 16, 2002 at 20:05 UTC | |
|
Re: Perl6 - value vs. reference issues
by chromatic (Archbishop) on Sep 13, 2002 at 21:33 UTC | |
|
Re: Perl6 - value vs. reference issues
by Zaxo (Archbishop) on Sep 13, 2002 at 22:53 UTC | |
by blssu (Pilgrim) on Sep 14, 2002 at 13:42 UTC | |
|
Re: Perl6 - value vs. reference issues
by pdcawley (Hermit) on Sep 14, 2002 at 12:07 UTC | |
by jryan (Vicar) on Sep 14, 2002 at 19:30 UTC | |
|
Re: Perl6 - value vs. reference issues
by John M. Dlugosz (Monsignor) on Jun 01, 2009 at 19:26 UTC |