Re: [svn:perl6-synopsis] r14500 - doc/trunk/design/syn

2008-02-05 Thread Mark J. Reed
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

Re: [svn:perl6-synopsis] r14500 - doc/trunk/design/syn

2008-02-05 Thread Larry Wall
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.

Re: [svn:perl6-synopsis] r14500 - doc/trunk/design/syn

2008-02-05 Thread Larry Wall
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;

Re: [svn:perl6-synopsis] r14500 - doc/trunk/design/syn

2008-02-05 Thread Mark J. Reed
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

Re: [svn:perl6-synopsis] r14500 - doc/trunk/design/syn

2008-02-05 Thread Darren Duncan
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

[OT] Re: [svn:perl6-synopsis] r14501 - doc/trunk/design/syn

2008-02-05 Thread Paul Hodges
--- Larry Wall <[EMAIL PROTECTED]> wrote: > Besides $^_ is just uglier than anything else I've seen today... lol -- I thought of it as a rather cute peeking-wink with a cauliflower ear, but that's probably much more cutesiness than we want to encourage in our language design. ===

[perl #32374] [TODO] Command line support for various compilers

2008-02-05 Thread Will Coleda via RT
On Mon Nov 08 19:57:18 2004, coke wrote: > I was talking with Dan on IRC about what we're going to do as a > replacement for macros. Talk turned to implementing a registered > 'compile'r for "pre parsed PIR". > > For this to be useful, of course, we'd need to be able to run it from > the command l

Re: [svn:perl6-synopsis] r14501 - doc/trunk/design/syn

2008-02-05 Thread Larry Wall
On Tue, Feb 05, 2008 at 11:57:37AM -0800, Jonathan Lang wrote: : Larry Wall wrote: : > : Is it forbidden to use placeholder parameters in conjunction with : > : "my"? Or would it simply not do anything useful? I ask because "Do : > : what I mean" would seem to imply that 'my Dog $^foo' would spec

[perl #45307] [BUG] Misleading time-zone display at http://smoke.parrotcode.org/smoke/

2008-02-05 Thread James Keenan via RT
Robert has implemented this change on the smokeserver, which is now displaying smoke report times in UTC as the home page has always claimed to do. Resolving ticket.

Re: Let's use snprintf()

2008-02-05 Thread Andy_Bach
Just a note: snprintf is problematic on older Solaris systems (x86 anyway), for one. At least through 2.7 (2.8?) it's no included in any lib. So other apps needed to test and bring in their own version. a Andy Bach Systems Mangler Internet: [EMAIL PROTECTED] Voice: (608) 261-5738 Fax: 264-5932

Re: [svn:perl6-synopsis] r14501 - doc/trunk/design/syn

2008-02-05 Thread Jonathan Lang
Larry Wall wrote: > : Is it forbidden to use placeholder parameters in conjunction with > : "my"? Or would it simply not do anything useful? I ask because "Do > : what I mean" would seem to imply that 'my Dog $^foo' would specify > : $^foo's type as 'Dog'. Though if you start doing too much of t

Re: Let's use snprintf()

2008-02-05 Thread chromatic
On Tuesday 05 February 2008 11:36:00 Andy Lester wrote: > Ignoring the length   > parameter leaves those platforms without snprintf() exactly where they   > are today. ... the PIT of VILE DESPAIR! When the inevitable revolution comes, I'm going to put their maintainers up against the wall and f

Re: Let's use snprintf()

2008-02-05 Thread Andy Lester
On Feb 5, 2008, at 1:17 PM, [EMAIL PROTECTED] wrote: (He sent this to me directly by mistake) snprintf is problematic on older Solaris systems, for one. At least through 2.7 (2.8?) it's not included in any lib. So other apps needed to test and bring in their own version. This is covered

Re: [svn:perl6-synopsis] r14501 - doc/trunk/design/syn

2008-02-05 Thread Larry Wall
On Tue, Feb 05, 2008 at 10:42:35AM -0800, Jonathan Lang wrote: : > +++ doc/trunk/design/syn/S03.podTue Feb 5 09:55:29 2008 : > @@ -2791,7 +2791,7 @@ : > are insufficient for defining the "pecking order" of code. Note that : > you can bind to either a bare block or a pointy block. Bindi

Re: Let's use snprintf()

2008-02-05 Thread jerry gay
On Feb 5, 2008 11:08 AM, Andy Lester <[EMAIL PROTECTED]> wrote: > Constructions like this give me the willies: > >char * const buf = (char *)mem_sys_allocate(16); >sprintf(buf, "%d", type); > i saw this code the other day, and thought, "gee, malloc's just gonna grab 64 anyway. that's silly.

Let's use snprintf()

2008-02-05 Thread Andy Lester
Constructions like this give me the willies: char * const buf = (char *)mem_sys_allocate(16); sprintf(buf, "%d", type); Yes, I know that 16 characters is more than enough, but I still don't like it. I'd prefer it if we were using instead snprintf(buf, 16, "%d", type); I suspect there

Re: [svn:perl6-synopsis] r14501 - doc/trunk/design/syn

2008-02-05 Thread Jonathan Lang
> +++ doc/trunk/design/syn/S03.podTue Feb 5 09:55:29 2008 > @@ -2791,7 +2791,7 @@ > are insufficient for defining the "pecking order" of code. Note that > you can bind to either a bare block or a pointy block. Binding to a > bare block conveniently leaves the topic in C<$_>, so the fi

[svn:perl6-synopsis] r14501 - doc/trunk/design/syn

2008-02-05 Thread larry
Author: larry Date: Tue Feb 5 09:55:29 2008 New Revision: 14501 Modified: doc/trunk/design/syn/S02.pod doc/trunk/design/syn/S03.pod doc/trunk/design/syn/S06.pod Log: Added named placeholders using $:foo twigil; idea from cognominal++: Placeholder subs can now also autoadd [EMAIL PROTECT

[svn:perl6-synopsis] r14500 - doc/trunk/design/syn

2008-02-05 Thread larry
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 ==

What goes in the API?

2008-02-05 Thread Andy Lester
I had removed the PARROT_API from ld() in list.c because we don't need to offer as a public function to the user a function that computes logs base 2. fperrad reverted that because it broke "make hello". It seems to me that this is backwards, just like my PARROT_APIing some other something

[perl #40156] [TODO] - Can't use an Iterator with a DynLexPad PMC

2008-02-05 Thread Will Coleda via RT
On Wed Aug 16 23:09:16 2006, mdiep wrote: > I don't know how to write a test for this off the top of my head, but > Iterator and DynLexPad don't play well together atm. When I tried, I > got this error: > > elements() not implemented in class 'DynLexPad' > > Is there an easy way to make