Re: [RFC] adding skip option directly to plan()

2004-11-30 Thread Randy W. Sims
Geoffrey Young wrote: Michael G Schwern wrote: On Wed, Dec 01, 2004 at 12:44:50AM +0100, Paul Johnson wrote: plan tests => 14, if => have( "Foo" ) && moon_phase eq "waning"; The downside here, as Geoff alluded to, is that we don't really want the short circuiting behaviour of &&, since evaluating

Re: Angle quotes and pointy brackets

2004-11-30 Thread Smylers
John Siracusa writes: > Call me crazy, but at this point I'm prone to stick with what I've done in > Perl 5 for years: > > $var{'key1'}{'key2'}[3]{'key3'} In which case do that, since it'll still work in Perl 6. Actually, it works 'better' in Perl 6, since it doesn't mislead in any way. I'

Re: qq:i

2004-11-30 Thread Smylers
Jim Cromie writes: > since the qq:X family has recently come up, Id like to suggest another. > > qq:i {} is just like qq{} except that when it interpolates variables, > those which are undefined are preserved literally. So then when doing maintenance on some code I can break it by introducing a

Re: continuation enhanced arcs

2004-11-30 Thread Bill Coffman
On Tue, 30 Nov 2004 14:45:39 -0500, Dan Sugalski <[EMAIL PROTECTED]> wrote: > At 11:20 AM -0800 11/30/04, Jeff Clites wrote: > >% cat continuation6.ruby > >def strange > > callcc {|continuation| $saved = continuation} > >end > > > >def outer > > a = 0 > > strange() > > a = a + 1 > >

Re: Angle quotes and pointy brackets

2004-11-30 Thread Ashley Winters
On Tue, 30 Nov 2004 19:10:48 -0800, Brent 'Dax' Royal-Gordon <[EMAIL PROTECTED]> wrote: > John Siracusa <[EMAIL PROTECTED]> wrote: > > On 11/30/04 9:54 PM, Matt Diephouse wrote: > > > use CGI «:standard»; > > > [...] > > > use CGi <:standard>; > > > > Who is doing this? I'm just saying... >

Re: Angle quotes and pointy brackets

2004-11-30 Thread Matt Diephouse
On Tue, 30 Nov 2004 19:10:48 -0800, Brent 'Dax' Royal-Gordon <[EMAIL PROTECTED]> wrote: > John Siracusa <[EMAIL PROTECTED]> wrote: > > Who is doing this? I'm just saying... > > > >use CGI ':standard'; I normally use qw// when use-ing. *shrug* > And won't we just be doing: > > use CGI :

Re: Angle quotes and pointy brackets

2004-11-30 Thread Luke Palmer
All the cool kids are thinking aloud these days. Why not jump on the bandwagon? Larry Wall writes: > * We get the cute, clean and rather more typeable > > $var[3] It looks like if you shook that up and down a bit, it would break in half. I wonder what would happen if we made <> a lit

PDD 03 Issue: keyword arguments

2004-11-30 Thread Sam Ruby
Python provides the ability for any function to be called with either positional or keyword [1] arguments. Here is a particularly brutal example: args={'a':1,'b':2,'c':3} def f(a,b,c): return (a,b,c) def g(b,c,a): return (a,b,c) for j in [f,g]: print j(1,2,3) for j in [f,g]:

Re: Angle quotes and pointy brackets

2004-11-30 Thread Brent 'Dax' Royal-Gordon
John Siracusa <[EMAIL PROTECTED]> wrote: > On 11/30/04 9:54 PM, Matt Diephouse wrote: > > use CGI «:standard»; > > [...] > > use CGi <:standard>; > > Who is doing this? I'm just saying... > >use CGI ':standard'; And won't we just be doing: use CGI :standard; anyway? -- Brent '

Re: Angle quotes and pointy brackets

2004-11-30 Thread John Siracusa
On 11/30/04 9:54 PM, Matt Diephouse wrote: > use CGI «:standard»; > [...] > use CGi <:standard>; Who is doing this? I'm just saying... use CGI ':standard'; It really ain't all that broke, is it? -John

Re: Angle quotes and pointy brackets

2004-11-30 Thread Larry Wall
On Tue, Nov 30, 2004 at 03:03:38PM -0800, Jon Ericson wrote: : Larry Wall <[EMAIL PROTECTED]> writes: : : > The p5-to-p6 translator will turn any : > : > while () {...} : > : > into : > : > for @$handle {...} : : Including: : : while(<>) {...} : : to : : for @$ {...} : : ? You le

Re: qq:i

2004-11-30 Thread John Macdonald
On Tue, Nov 30, 2004 at 05:54:45PM -0700, Luke Palmer wrote: > Jim Cromie writes: > > > > since the qq:X family has recently come up, Id like to suggest another. > > > > qq:i {} is just like qq{} except that when it interpolates variables, > > those which are undefined are preserved literally. >

Re: Angle quotes and pointy brackets

2004-11-30 Thread Larry Wall
On Tue, Nov 30, 2004 at 06:27:55PM -0500, Matt Fowles wrote: : Even if he wasn't cackling, I admit to feeling it. I don't even use : the qx/qq/qw stuff in perl5. I always got by with "". : : Although I must admit to liking python's C< r"..." > meaning : absolutely raw string (useful for avoiding

Re: Hyper Here-Docs?

2004-11-30 Thread Luke Palmer
Abhijit Mahabal writes: > On Wed, 1 Dec 2004, Damian Conway wrote: > > > Abhijit Mahabal wrote: > > > > > I am a little confused if the following is valid perl6: > > > > > > our &xsub = { $x }; > > > > No. Illegal attempt to assign to a reference. You want aliasing/binding > > instead: > > > >

Re: qq:i

2004-11-30 Thread Luke Palmer
Jim Cromie writes: > > since the qq:X family has recently come up, Id like to suggest another. > > qq:i {} is just like qq{} except that when it interpolates variables, > those which are undefined are preserved literally. Eeeew. Probably going to shoot this down. But let's see where you're go

Re: qq:i

2004-11-30 Thread Juerd
Jim Cromie skribis 2004-11-30 16:53 (-0700): >my @args = @{$template{args}}; >my $body = $template{body}; >eval sub qq:i{ > my ($self, @args) = @_; > $body; >} Please explain what you want it to do with @args there. Juerd

Re: Angle quotes and pointy brackets

2004-11-30 Thread John Macdonald
On Tue, Nov 30, 2004 at 02:26:06PM -0800, Brent 'Dax' Royal-Gordon wrote: : Larry Wall <[EMAIL PROTECTED]> wrote: : > * Since we already stole angles from iterators, «$fh» is not : > how you make iterators iterate. Instead we use $fh.fetch (or : > whatever) in scalar context, a

Re: Angle quotes and pointy brackets

2004-11-30 Thread Uri Guttman
> "AH" == Austin Hastings <[EMAIL PROTECTED]> writes: AH> Larry Wall wrote: >> * We get the cute, clean and rather more typeable >> >> $var[3] >> AH> No more or less typeable for me, or anyone else who can remap their AH> keyboard. I'm presuming there's something costly about

Re: Angle quotes and pointy brackets

2004-11-30 Thread Matt Fowles
Austin~ On Tue, 30 Nov 2004 18:15:54 -0500, Austin Hastings <[EMAIL PROTECTED]> wrote: > Austin Hastings wrote: > > > Larry Wall wrote: > > And now, Piers is cackling madly at Matt: welcome to "perl6-hightraffic!" > > :-) Even if he wasn't cackling, I admit to feeling it. I don't even use th

Re: Name needed for Test.pm compatibility module

2004-11-30 Thread Michael G Schwern
On Tue, Nov 30, 2004 at 10:55:47PM +0100, Tels wrote: > > Ok, Test::Legacy it is. Now I have to figure out if I want to reimplement > > Test.pm from scratch or try and wedge a TB object into the existing code. > > Sean's added a lot of code since last I looked. > > I really have to ask :o) > > *

Re: Angle quotes and pointy brackets

2004-11-30 Thread Rod Adams
Brent 'Dax' Royal-Gordon wrote: I like this in general. However... Larry Wall <[EMAIL PROTECTED]> wrote: * Since we already stole angles from iterators, «$fh» is not how you make iterators iterate. Instead we use $fh.fetch (or whatever) in scalar context, and $fh.fetch or @$fh

Re: [perl #32676] testj hangs on string_102

2004-11-30 Thread Leopold Toetsch
Peter Sinnott <[EMAIL PROTECTED]> wrote: > eval_4.pasm seems to be falling over on redhat as 3 when running > with jit. Fixed. leo

Re: Angle quotes and pointy brackets

2004-11-30 Thread Juerd
A request to everyone who wants to discuss this again: please, read the Backticks thread. Almost everything that can be said about this subject has already been said before. It is a huge thread, and let's not copy everything here. Alexey Trofimenko skribis 2004-11-30 14:34 (+0300): > but it puts

[perl #32699] [PATCH] benchmark tests

2004-11-30 Thread via RT
# New Ticket Created by Justin DeVuyst # Please include the string: [perl #32699] # in the subject line of all future correspondence about this issue. # http://rt.perl.org:80/rt3/Ticket/Display.html?id=32699 > This patch will allow all the *.imc and *.pasm benchmarks to be tested by running

Re: deprecated transcendental ops with I arguments

2004-11-30 Thread Leopold Toetsch
Dan Sugalski <[EMAIL PROTECTED]> wrote: > At 3:02 PM +0100 11/25/04, Leopold Toetsch wrote: >>Transcendental (and some other) ops that have a FLOATVAL out >>argument and INTVAL source argument(s) are deprecated. > No, dammit, they are *not* deprecated. Ok. The word deprecated was too strong. > L

Re: Perl 6 Summary for 2004-11-22 through 2004-11-29

2004-11-30 Thread Juerd
Matt Fowles skribis 2004-11-29 22:22 (-0500): > Juerd suggested scrapping qx and qw in favor of qq:x and qq:w, which > Larry liked. Credit for this shouldn't be mine, but Larry's, as it's his invention: <[EMAIL PROTECTED]> Juerd

[CVS ci] remove a bunch of IMCC globals

2004-11-30 Thread Leopold Toetsch
I've moved a lot of the globals into the imc_info structure. The PASM and PIR compilers are basically re-entrant now (there are likely some issues with line numbers in error reports). To achieve this a lot of functions got an interpreter argument, which unfortunately makes the patch rather big.

Re: [CVS ci] opcode cleanup 1 - minus 177 opcodes

2004-11-30 Thread Leopold Toetsch
Dan Sugalski <[EMAIL PROTECTED]> wrote: > ... This patch broke a lot of my code. All opcode permutations [1] are still valid. Can you please provide a PASM snippet that doesn't work anymore. [1] except abs I, N which was the only opcode with an integer result for a float argument and lcm N,I,I w

Re: Too many opcodes

2004-11-30 Thread Leopold Toetsch
Dan Sugalski <[EMAIL PROTECTED]> wrote: > ... The answer isn't to reduce the op count. The > answer's to make the cores manageable, which doesn't require tossing > ops out. It seems that it was a bit unclear what my patches did. The confusion seem to arise from the usage of the term opcode. I use