Re: Aliasing swapped values

2005-04-10 Thread Juerd
Ovid skribis 2005-04-10 10:47 (-0700): > Apologies if this has been covered. What should this do? > ($x,$y) := ($y,$x); It would let $x be a second name for the variable that is also called $y, and $y for $x. The old names $x and $y are overwritten, so essentially the names for the two variable

Re: S26 Draft

2005-04-10 Thread Brian Ingerson
On 10/04/05 09:58 -0400, Aaron Sherman wrote: > On Sun, 2005-04-10 at 14:02 +0300, Yuval Kogman wrote: > > Please don't be lazy, everyone, and look at this: > > > > http://svn.openfoundry.org/pugs/docs/ > > > > There are some more drafts that should be reviewed, and more will > > probably follow.

Re: [S29] update

2005-04-10 Thread Rod Adams
Ingo Blechschmidt wrote: then the S29 draft (http://www.rodadams.net/Perl/S29.html) needs updating, as currently it states: What is returned at each element of the iteration varies with function. values returns the value of the associated element; **kv returns a 2 element list in (index, val

Aliasing swapped values

2005-04-10 Thread Ovid
Hi all, Apologies if this has been covered. What should this do? ($x,$y) := ($y,$x); In Perl5: $x=2; $y=3; print "x: $x y: $y\n"; (*::x, *::y) = (*::y, *::x); $y=4; print "x: $x y: $y\n"; $x=5; print "x: $x y: $y\n"; This program shows typeglob aliasing. If we try to alias sw

[S06] Types of subroutines/blocks/etc.

2005-04-10 Thread Ingo Blechschmidt
Hi, A06 states: > Code >| > | | >RoutineBlock > |_____|___ > | | | ||

Re: S26 Draft

2005-04-10 Thread Aaron Sherman
On Sun, 2005-04-10 at 14:02 +0300, Yuval Kogman wrote: > Please don't be lazy, everyone, and look at this: > > http://svn.openfoundry.org/pugs/docs/ > > There are some more drafts that should be reviewed, and more will > probably follow. Can we please be rid of: http://svn.openfoundry.org/pugs/

Re: S26 Draft

2005-04-10 Thread Yuval Kogman
Please don't be lazy, everyone, and look at this: http://svn.openfoundry.org/pugs/docs/ There are some more drafts that should be reviewed, and more will probably follow. -- () Yuval Kogman <[EMAIL PROTECTED]> 0xEBD27418 perl hacker & /\ kung foo master: uhm, no, I think I'll sit this one

[S29] update (was: Re: Question about $pair.kv)

2005-04-10 Thread Ingo Blechschmidt
Hi, Luke Palmer luqui.org> writes: > Stevan Little writes: > > One tests shows $pair.kv returning an array with two elements (the key > > and value of the pair). (This is also how Pugs currently implements > > this.) > > The former is certainly correct. When all else fails, consider a

S26 Draft

2005-04-10 Thread Brian Ingerson
Per autrijus request, I have written a preliminary Synopsis 26 -- Perl Documentation. For your ripping apart pleasures: http://svn.openfoundry.org/pugs/docs/S26draft.pod Cheers, Brian