Front page | perl.perl6.language |
Postings from May 2001
From: Larry Wall
May 19, 2001 12:14
Message ID: 200105191913.MAA00842@kiev.wall.org
Dan Sugalski writes:
: At 02:55 PM 5/19/2001 -0400, John Porter wrote:
: >Dan Sugalski wrote:
: > > So what happens when you assign an overloaded value to a tied variable, or
: > > vice versa? Which wins?
: >Uh, the overloaded value gets evaluated to an normal value,
: >and the tied variable does what it does with that.
: Yep. Maybe. Hence the question. :)
I would think it would depend on the constraints place on the value by
the tie implementation. An implementation that can handle references
could just store away the overloaded reference. An implementation that
forces string representation couldn't.