On Feb 8, 2008 4:31 PM, chromatic <[EMAIL PROTECTED]> wrote:
> On Tuesday 05 February 2008 20:02:53 Mark J. Reed wrote:
>
> > Ah, macros, is there no problem you can't solve? :)
>
> If my experience with the Perl 5 core is any guide, the problem of too many
> macros.
The Perl5 core has macros? If
On Tuesday 05 February 2008 20:02:53 Mark J. Reed wrote:
> Ah, macros, is there no problem you can't solve? :)
If my experience with the Perl 5 core is any guide, the problem of too many
macros.
-- c
On Feb 5, 2008 8:11 PM, Larry Wall <[EMAIL PROTECTED]> wrote:
> Oh wait, I lied. You can get pugs to do it with:
>
> my $a = 0; my @b; (lazy { VAR($a) }, lazy { VAR(@b[$a]) }) = 1,2; say
> @b.join(':')
>
> Now just put that in a macro...
Ah, macros, is there no problem you can't solve? :)
T
On Tue, Feb 05, 2008 at 05:42:28PM -0500, Mark J. Reed wrote:
: On Feb 5, 2008 5:34 PM, Darren Duncan <[EMAIL PROTECTED]> wrote:
: > >+my $a = 0; my @b;
: > >+($a, @b[$a]) = 1, 2;
: > >+
: > >+assigns 2 to @b[0], not @b[1].
: >
: > Personally, I think this is a particularly welcome change.
On Tue, Feb 05, 2008 at 02:34:35PM -0800, Darren Duncan wrote:
> At 9:15 AM -0800 2/5/08, [EMAIL PROTECTED] wrote:
>> +The left side is evaluated completely for its sequence of containers before
>> +any assignment is done. Therefore this:
>> +
>> +my $a = 0; my @b;
>> +($a, @b[$a]) = 1, 2;
On Feb 5, 2008 5:34 PM, Darren Duncan <[EMAIL PROTECTED]> wrote:
> >+my $a = 0; my @b;
> >+($a, @b[$a]) = 1, 2;
> >+
> >+assigns 2 to @b[0], not @b[1].
>
> Personally, I think this is a particularly welcome change.
It is certainly less surprising, I'd say. But is there a LET*
analogue to
At 9:15 AM -0800 2/5/08, [EMAIL PROTECTED] wrote:
+The left side is evaluated completely for its sequence of containers before
+any assignment is done. Therefore this:
+
+my $a = 0; my @b;
+($a, @b[$a]) = 1, 2;
+
+assigns 2 to @b[0], not @b[1].
Personally, I think this is a particularl
Author: larry
Date: Tue Feb 5 09:15:04 2008
New Revision: 14500
Modified:
doc/trunk/design/syn/S03.pod
Log:
Clarify that lhs of list assignment is list of containers, not thunks
Modified: doc/trunk/design/syn/S03.pod
==