Search Discussions
-
E.g. see <http://www.perlmonks.org/?node_id=703265 : sub bar { return 100; } sub foo { 50;} sub foo-bar { return rand(50); } if (foo - bar != foo-bar) { print "Haha!\n"; }
John M. Dlugosz
Aug 11, 2008 at 3:35 am
Aug 20, 2008 at 7:09 pm -
This weekend I wrote <http://www.dlugosz.com/Perl6/web/Infinity_romp.html which explains the Inf features of Perl 6, but drills down each example to reach the most fundamental language features, ...
John M. Dlugosz
Aug 5, 2008 at 5:33 am
Aug 8, 2008 at 1:08 pm -
Has the "err" operator, as a low-precidence version of //, been removed? It's not mentioned in S03, and the semantics of "orelse" is different. Is "orelse" supposed to be a direct replacement, ...
John M. Dlugosz
Aug 31, 2008 at 9:28 pm
Sep 7, 2008 at 6:51 pm -
Author: larry Date: Fri Aug 8 10:34:49 2008 New Revision: 14574 Modified: doc/trunk/design/syn/S02.pod Log: allow isolated ' and - in identifiers (only if followed by alpha) Modified: ...
Larry
Aug 8, 2008 at 5:34 pm
Aug 13, 2008 at 8:29 am -
Lets say I want to find the 5th smallest element in an array. I might write: @array.sort.[4]; How does the implementation of the sort function know that I just want to 5th item (and thus choose an ...
Dave Whipp
Aug 29, 2008 at 8:22 pm
Sep 1, 2008 at 7:53 pm -
Hi, I am currently reviewing bits of the spec surrounding multiple dispatch and, of course, have a question or two (I'll probably have some more later, as the dust settles in my head). 1) The spec ...
Jonathan Worthington
Aug 5, 2008 at 4:17 pm
Aug 6, 2008 at 2:33 pm -
Easier said than done. Question to p6l: do && and || autothread? Or do they collapse the junction prior to evaluation? (I hope the latter, since I think it's more dwimmy). Also do prefix:<? and ...
Moritz Lenz
Aug 24, 2008 at 7:22 pm
Aug 27, 2008 at 9:18 am -
In a little language that I wrote some time ago, I found it very useful to let the // operator catch exceptions: f(x) // g(y) does: * If f(x) returns a defined value, use this value. * If f(x) ...
Yaakov Belch
Aug 6, 2008 at 3:59 pm
Aug 8, 2008 at 4:19 pm -
Hi List -- I'v started playing around with perl 6, and I am having problems with this example: use v6; sub xsum (@list) { my $i = 0; print "summing: "; for @list { $i += $_; print $_,","; } say " = ...
Andy Colson
Aug 22, 2008 at 9:34 pm
Aug 22, 2008 at 11:13 pm -
There are quite a few tests in the spectest suite that make mention of "arrayref" and "hashref", and that expect things to work like references do in Perl 5. I'd like to get some ...
Patrick R. Michaud
Aug 18, 2008 at 6:38 pm
Aug 20, 2008 at 6:56 pm -
I was trying to figure out exactly how Captures manage to stay invisible even though functions return them, yet still let you use Capture objects when you want to. Please see my conclusions at ...
John M. Dlugosz
Aug 8, 2008 at 1:02 pm
Aug 11, 2008 at 4:20 am -
What is the difference between (1,2,3) and [1,2,3] ? --John
John M. Dlugosz
Aug 9, 2008 at 2:53 am
Aug 9, 2008 at 7:26 pm -
Hi, There is in the spectests this example: my $text = "abc"; my %ret; %ret = map { $_ = uc $_; }, split "", $text; is ~%ret.kv, "a A b B c C", "= works in a map block"; However, it seems from S06: ...
Jonathan Worthington
Aug 7, 2008 at 8:24 pm
Aug 11, 2008 at 8:09 am -
Why is 3;3;3 a list of captures rather than a list of lists? --John
John M. Dlugosz
Aug 9, 2008 at 3:06 am
Aug 9, 2008 at 7:18 pm -
See my latest creation at <http://www.dlugosz.com/Perl6/web/APL.html
John M. Dlugosz
Aug 7, 2008 at 9:47 am
Aug 8, 2008 at 7:59 am -
So do they have to go at the end of the whole expression in the current grammar? I don't follow about the spaces. Do you write $a lt:lc $b le:lc $c or $a lt :lc $b le :lc $c or $a lt $b :lc le $c :lc ...
John M. Dlugosz
Aug 7, 2008 at 9:45 am
Aug 7, 2008 at 6:06 pm -
I've edited several of the S??.pod files,but I have not heard back from the owner ($Larry, whose name is on the top of the file) about accepting merging or rejecting my changes. I've posted the files ...
John M. Dlugosz
Aug 2, 2008 at 11:05 pm
Aug 5, 2008 at 3:04 pm -
In S05, I found this regarding the generalized repetition specifier: <alt ** '|' # repetition controlled by presence of character I tried it out with rule thislist { <alpha ** '|' }; and got (with ...
Stephen Simmons
Aug 31, 2008 at 2:33 pm
Sep 6, 2008 at 2:53 am -
Yesterday I got bitten by the fact that currently in Rakudo, $/ doesn't copy content from the matched string, but instead trusts that it stays in the matched string and doesn't change. Is this the ...
Carl Mäsak
Aug 23, 2008 at 10:45 am
Aug 23, 2008 at 1:24 pm -
There are no barewords in Perl 6, but it seems new method is an exception: class Dog { has $name; method bark () { say $name; } } my $p = Dog.new($name = 'boo'); $p.bark; #error! my $p = Dog.new( ...
Xiao Yafeng
Aug 22, 2008 at 5:53 am
Aug 23, 2008 at 12:24 am -
Hi $Larry et al, I brought this up as a question at YAPC::EU and found to my surprise that no one seems to have thought of it yet. This is the mail I said I’d write. (And apologies, Larry. :-) ) ...
Aristotle Pagaltzis
Aug 20, 2008 at 10:15 pm
Aug 21, 2008 at 9:05 pm -
I wrote <http://www.dlugosz.com/Perl6/web/return.html to clarify and extrapolate from what is written in the Synopses. --John
John M. Dlugosz
Aug 9, 2008 at 7:51 am
Aug 12, 2008 at 2:02 pm -
How is @array[*-2] supposed to be implemented? S09<v28 // reported again 8-Aug-2008 Is this magic known to the parser at a low level, or is it possible to define your own postcircumfix operators that ...
John M. Dlugosz
Aug 9, 2008 at 2:42 am
Aug 10, 2008 at 6:48 pm -
Author: larry Date: Fri Aug 8 07:59:12 2008 New Revision: 14573 Modified: doc/trunk/design/syn/S02.pod doc/trunk/design/syn/S06.pod doc/trunk/design/syn/S13.pod Log: clarify that &foo is a real ...
Larry
Aug 8, 2008 at 2:59 pm
Aug 8, 2008 at 11:26 pm -
I'm trying to do a Perl script (PC has Perl5 installed) in a BAT file which will open the CMD prompt, interact with the user and copy files from one location to other directories. Does anyone know ...
Tara
Aug 7, 2008 at 1:38 pm
Aug 8, 2008 at 7:45 am -
What about adverbs on reduction operators? [lt :lc] $a,$b,$c # all in decreasing order --John
John M. Dlugosz
Aug 7, 2008 at 10:04 am
Aug 8, 2008 at 4:17 am -
Does that mean that traits can come before the signature? Or should it be corrected to method close () is export { ... } ?
John M. Dlugosz
Aug 5, 2008 at 9:31 am
Aug 6, 2008 at 3:25 pm -
I just put together <http://www.dlugosz.com/Perl6/web/class-declarators.html as part of my analysis and documentation effort. I'll link the "meanings" to more extensive treatments. Did I miss any ...
John M. Dlugosz
Aug 11, 2008 at 6:33 am
Aug 11, 2008 at 12:55 pm -
1) How do you declare a private method? I see how you call one, but not how to define one. 1b) Is the intent that $!foo without an explicit invocant refers to self, as opposed to $.bar or .bar which ...
John M. Dlugosz
Aug 9, 2008 at 8:49 am
Aug 9, 2008 at 4:22 pm -
According to S02, "The word returns is allowed as an alias for of." and "The as property specifies a constraint to be enforced on the return value ..., is not advertised as the type of the routine" ...
John M. Dlugosz
Aug 2, 2008 at 6:51 am
Aug 2, 2008 at 4:32 pm -
In S04, the "Exceptions" section mentions that $! contains multiple exceptions. So what type is it? Why isn't it @! ? I says that they are thrown as a single new exception. So what type is that new ...
John M. Dlugosz
Aug 31, 2008 at 9:13 pm
Aug 31, 2008 at 9:13 pm -
I have changed files at <http://www.dlugosz.com/Perl6/offerings/ waiting for someone in authority to merge.
John M. Dlugosz
Aug 31, 2008 at 5:45 pm
Aug 31, 2008 at 5:45 pm -
Author: larry Date: Thu Aug 21 13:38:48 2008 New Revision: 14577 Modified: doc/trunk/design/syn/S12.pod Log: Clarification that categories change the choice of dispatcher on method names Modified: ...
Larry
Aug 21, 2008 at 8:38 pm
Aug 21, 2008 at 8:38 pm -
Author: larry Date: Thu Aug 21 12:58:24 2008 New Revision: 14576 Modified: doc/trunk/design/syn/S12.pod Log: remove failover from methods to subs Modified: doc/trunk/design/syn/S12.pod ...
Larry
Aug 21, 2008 at 7:58 pm
Aug 21, 2008 at 7:58 pm -
On behalf of the Parrot team, I'm proud to announce Parrot 0.7.0 "Severe Macaw." Parrot (http://parrotcode.org/) is a virtual machine aimed at running all dynamic languages. Parrot 0.7.0 is available ...
Bob Rogers
Aug 19, 2008 at 7:10 pm
Aug 19, 2008 at 7:10 pm -
Author: larry Date: Tue Aug 19 12:03:51 2008 New Revision: 14575 Modified: doc/trunk/design/syn/S02.pod Log: P5ism noted by moritz++ Modified: doc/trunk/design/syn/S02.pod ...
Larry
Aug 19, 2008 at 7:03 pm
Aug 19, 2008 at 7:03 pm -
I discovered a small p5ism in S02. Patch below. (My copy of S02 might be a bit out of date, though. Sorry, I've been offline for a while). --- Syntax.pod.old 2008-08-13 19:48:21.000000000 +0200 +++ ...
Moritz Lenz
Aug 14, 2008 at 3:59 pm
Aug 14, 2008 at 3:59 pm -
Around line 477, it explains that our $count; method ^count { return $count } Such a I<metaclass method is always delegated to the C<HOW object just as methods like C<.does are, so it's possible to ...
John M. Dlugosz
Aug 13, 2008 at 9:01 am
Aug 13, 2008 at 9:01 am -
our $.var — class attribute, accessor, inheritable. our $!var — class attribute, no accessor, inheritable. If the second form has no accessor, how can it be inheritable?
John M. Dlugosz
Aug 11, 2008 at 6:07 am
Aug 11, 2008 at 6:07 am -
Hi, S29 says: "Returns a |Time| object. There are a number of uses for this object, all of which can be found in the documentation for |Time|." However, I don't see that documentation in S29, and ...
Jonathan Worthington
Aug 7, 2008 at 11:46 am
Aug 7, 2008 at 11:46 am -
HaloO, the smart match table in S03 has the Any ~~ Num meaning numeric equality. But shouldn't that be a bit fuzzier? E.g. a match $x ~~ $num should check abs($x - $num) < epsilon with an epsilon ...
TSa
Aug 6, 2008 at 3:16 pm
Aug 6, 2008 at 3:16 pm -
Author: audreyt Date: Tue Aug 5 02:43:49 2008 New Revision: 14572 Modified: doc/trunk/design/syn/S12.pod Log: * Typo spotted by John M. Dlugosz++: method close is export () { ... } # Wrong method ...
Audreyt
Aug 5, 2008 at 9:43 am
Aug 5, 2008 at 9:43 am -
Author: audreyt Date: Tue Aug 5 02:38:33 2008 New Revision: 14571 Modified: doc/trunk/design/syn/S02.pod Log: * S02: A few more C<... an C<<... blocks, Contributed by John M. Dlugosz++. Modified: ...
Audreyt
Aug 5, 2008 at 9:38 am
Aug 5, 2008 at 9:38 am -
In S12, "So when you say "Dog", you're referring to both a package and a protoobject, that latter of which points to the actual object representing the class via HOW." Does that mean that the object ...
John M. Dlugosz
Aug 5, 2008 at 9:16 am
Aug 5, 2008 at 9:16 am
Group Overview
group | perl6-language |
categories | perl |
discussions | 44 |
posts | 175 |
users | 41 |
website | perl6.org |
41 users for August 2008
Archives
- May 2016 (16)
- April 2016 (4)
- March 2016 (6)
- February 2016 (20)
- January 2016 (28)
- December 2015 (20)
- November 2015 (12)
- October 2015 (51)
- September 2015 (35)
- April 2015 (15)
- March 2015 (28)
- February 2015 (35)
- January 2015 (49)
- December 2014 (24)
- November 2014 (18)
- October 2014 (43)
- September 2014 (82)
- August 2014 (58)
- July 2014 (16)
- June 2014 (28)
- May 2014 (63)
- April 2014 (53)
- March 2014 (53)
- February 2014 (21)
- January 2014 (19)
- December 2013 (48)
- November 2013 (110)
- October 2013 (35)
- September 2013 (31)
- August 2013 (40)
- July 2013 (48)
- June 2013 (53)
- May 2013 (39)
- April 2013 (20)
- March 2013 (31)
- February 2013 (22)
- January 2013 (15)
- December 2012 (6)
- November 2012 (10)
- October 2012 (12)
- September 2012 (25)
- August 2012 (16)
- July 2012 (45)
- June 2012 (38)
- May 2012 (35)
- April 2012 (61)
- March 2012 (68)
- February 2012 (39)
- January 2012 (25)
- December 2011 (15)
- November 2011 (12)
- October 2011 (13)
- September 2011 (24)
- August 2011 (62)
- July 2011 (31)
- June 2011 (29)
- May 2011 (17)
- April 2011 (5)
- March 2011 (25)
- February 2011 (22)
- January 2011 (20)
- December 2010 (25)
- November 2010 (124)
- October 2010 (101)
- September 2010 (63)
- August 2010 (104)
- July 2010 (219)
- June 2010 (91)
- May 2010 (110)
- April 2010 (171)
- March 2010 (152)
- February 2010 (154)
- January 2010 (65)
- December 2009 (87)
- November 2009 (89)
- October 2009 (169)
- September 2009 (173)
- August 2009 (324)
- July 2009 (157)
- June 2009 (158)
- May 2009 (415)
- April 2009 (128)
- March 2009 (331)
- February 2009 (457)
- January 2009 (306)
- December 2008 (270)
- November 2008 (130)
- October 2008 (110)
- September 2008 (188)
- August 2008 (175)
- July 2008 (70)
- June 2008 (125)
- May 2008 (204)
- April 2008 (425)
- March 2008 (141)
- February 2008 (86)
- January 2008 (140)
- December 2007 (153)
- November 2007 (53)
- October 2007 (19)
- September 2007 (69)
- August 2007 (22)
- July 2007 (22)
- June 2007 (239)
- May 2007 (164)
- April 2007 (106)
- March 2007 (171)
- February 2007 (166)
- January 2007 (175)
- December 2006 (69)
- November 2006 (122)
- October 2006 (301)
- September 2006 (306)
- August 2006 (329)
- July 2006 (183)
- June 2006 (113)
- May 2006 (239)
- April 2006 (314)
- March 2006 (90)
- February 2006 (183)
- January 2006 (193)
- December 2005 (196)
- November 2005 (307)
- October 2005 (613)
- September 2005 (338)
- August 2005 (412)
- July 2005 (505)
- June 2005 (410)
- May 2005 (913)
- April 2005 (635)
- March 2005 (640)
- February 2005 (440)
- January 2005 (72)
- December 2004 (249)
- November 2004 (151)
- October 2004 (34)
- September 2004 (290)
- August 2004 (207)
- July 2004 (335)
- June 2004 (188)
- May 2004 (172)
- April 2004 (403)
- March 2004 (217)
- February 2004 (221)
- January 2004 (180)
- December 2003 (166)
- November 2003 (193)
- October 2003 (46)
- September 2003 (104)
- August 2003 (100)
- July 2003 (78)
- June 2003 (106)
- May 2003 (306)
- April 2003 (804)
- March 2003 (523)
- February 2003 (137)
- January 2003 (635)
- December 2002 (425)
- November 2002 (570)
- October 2002 (837)
- September 2002 (447)
- August 2002 (385)
- July 2002 (238)
- June 2002 (187)
- May 2002 (215)
- April 2002 (493)
- March 2002 (72)
- February 2002 (80)
- January 2002 (290)
- December 2001 (34)
- November 2001 (33)
- October 2001 (417)
- September 2001 (210)
- August 2001 (185)
- July 2001 (277)
- June 2001 (290)
- May 2001 (638)
- April 2001 (503)
- March 2001 (186)
- February 2001 (595)
- January 2001 (151)
- December 2000 (28)
- November 2000 (6)
- October 2000 (307)
- September 2000 (1,508)
- August 2000 (3,476)