Re: scalar dereferencing.

2005-06-17 Thread Larry Wall
On Fri, Jun 17, 2005 at 03:56:50AM +0800, Autrijus Tang wrote: : : my $x = 3; : my $y = \$x; : say $y + 10; : $y++; : say $y; : say $x; : : Currently in Pugs they print: : : 13 : 4 : 3 : : Is this sane? What is the scalar reference's semantics in face of a

Re: scalar dereferencing.

2005-06-17 Thread Rod Adams
Larry Wall wrote: On Fri, Jun 17, 2005 at 03:56:50AM +0800, Autrijus Tang wrote: : : my $x = 3; : my $y = \$x; : say $y + 10; : $y++; : say $y; : say $x; : : Currently in Pugs they print: : : 13 : 4 : 3 : : Is this sane? What is the scalar reference's

Re: scalar dereferencing.

2005-06-17 Thread Joshua Gatcomb
On 6/17/05, Larry Wall [EMAIL PROTECTED] wrote: On Fri, Jun 17, 2005 at 03:56:50AM +0800, Autrijus Tang wrote: : : my $x = 3; : my $y = \$x; : say $y + 10; : $y++; : say $y; : say $x; : I suspect people will find that counterintuitive. A more consistent

Re: scalar dereferencing.

2005-06-17 Thread Larry Wall
On Fri, Jun 17, 2005 at 02:29:08PM -0500, Rod Adams wrote: : Don't you mean: : :13 :4 :4 : : ? Er, yes. Sorry I've been spouting vaguely incoherent spoutings this week, but I've been up several times every night trying to deal with a masked bandit that likes to sneak in the cat

scalar dereferencing.

2005-06-16 Thread Autrijus Tang
my $x = 3; my $y = \$x; say $y + 10; $y++; say $y; say $x; Currently in Pugs they print: 13 4 3 Is this sane? What is the scalar reference's semantics in face of a stringification and numification? I assume that array/hash references simply pass on to the