Search Discussions
-
The reason we ended up at ./method was simply because it was the best suggestion anyone had. Compared to the previous suggestions it was way ahead. It's other advantage is that (except for on nordic ...
Adam Kennedy
Jun 18, 2005 at 4:24 am
Jun 21, 2005 at 4:28 pm -
Say I have a class method in FooClass, callable as FooClass.greet(): method greet(Class $class: ) { say "Hello, FooClass!"; } AFAIK, this is the only signature that would work for making &greet a ...
Gaal Yahas
Jun 16, 2005 at 3:56 pm
Jun 18, 2005 at 3:13 am -
Hi, sub foo (Code $code) { my $return_to_caller = - $ret { return $ret }; $code($return_to_caller); return 23; } sub bar (Code $return) { $return(42) } say foo &bar; # 42 or 23? I think it should ...
Ingo Blechschmidt
Jun 7, 2005 at 4:28 pm
Jul 4, 2005 at 6:32 pm -
Hi, As I know, for binding, you can use the := operator, and just this: $a := $b; I would like to make a proposal, based on Ruby[1]: alias $a, $b; It's a fun: sub newline { "\n" x $_; } alias ...
BÁRTHÁZI András
Jun 14, 2005 at 12:06 pm
Jun 23, 2005 at 10:52 pm -
Hi, I would have some general Perl6 programming questions. Where should I ask them? It's not about language design, not about compiling/compilers and even not related to the internals. As more and ...
BÁRTHÁZI András
Jun 14, 2005 at 1:54 pm
Jun 16, 2005 at 9:10 am -
Chip and I have been having a discussion. I want to write: sub foo { my $x = 1; return sub { eval $^codestring } } say foo()("$x"); I claim that that should print 1. Chip claims it should throw a ...
Piers Cawley
Jun 12, 2005 at 10:26 pm
Jun 13, 2005 at 1:18 pm -
All: Designing a language isn't easy - I get that. Opening up the design process to the entire community and filtering everyone's "good" ideas certainly doesn't make this any easier. My concern is ...
Joshua Gatcomb
Jun 10, 2005 at 4:51 pm
Jun 15, 2005 at 8:03 am -
Currently, does this: sub foo (::T $x, ::T $y) { } and this: sub foo (T $x, T $y) { } Means the same thing, namely a) if the package T is defined in scope, use that as the type constraint for $x and ...
Autrijus Tang
Jun 30, 2005 at 1:28 am
Jul 7, 2005 at 4:43 pm -
Currently in Pugs &*zip has no signature -- it simply rewrites its arguments into the listfix ¥ (i.e. Y) function. That is bad because it can't be introspected, and you can't define something like ...
Autrijus Tang
Jun 16, 2005 at 9:41 am
Jun 17, 2005 at 6:20 pm -
Hi! While playing around with some japh-obfus (which turned into my first commit to Pugs, yay!) I spotted this say <a b c ~<< <1 2 3 ; # prints a1b2c3 my $string=<a b c ~<< <1 2 3 ; say $string; # ...
Thomas Klausner
Jun 14, 2005 at 8:21 pm
Jun 14, 2005 at 10:59 pm -
-- Please excuse my spelling as I suffer from agraphia. See http://dformosa.zeta.org.au/~dformosa/Spelling.html to find out more. Free the Memes.
David Formosa \(aka ? the Platypus\)
Jun 10, 2005 at 9:32 am
Jun 14, 2005 at 7:25 pm -
With my occasionally-stated preference for keeping the Perl 6 core slimmer than it already is, I feel a little silly about suggesting new features for P6, but I'd like to stimulate debate on one that ...
Adam Kennedy
Jun 8, 2005 at 5:58 am
Jun 9, 2005 at 5:02 pm -
Hi, # No problem: my $data = BEGIN { my $fh = open "some_file" err...; =$fh; }; # Problem; my $fh = BEGIN { open "some_file" err... }; # Compile-time filehandle leaked into runtime! say =$fh; In Perl ...
Ingo Blechschmidt
Jun 13, 2005 at 3:09 pm
Aug 14, 2005 at 8:30 am -
Suppose I have a simple, single argument recursive function: sub factorial (Int $n) { return 1 if $n == 0; return $n * factorial $n; } Can I write that as: sub factorial (Int $n:) { return 1 when 0; ...
Piers Cawley
Jun 17, 2005 at 3:42 am
Jun 21, 2005 at 8:47 am -
Hi, as Larry mentioned in another thread that he wants a "different notation for word splitting" (http://www.nntp.perl.org/group/perl.perl6.language/21874), how about that, similar to Haskell's ...
Ingo Blechschmidt
Jun 15, 2005 at 5:15 pm
Jun 16, 2005 at 12:07 am -
I have thought of an interesting idea that may allow Perl 6 to make the $, @, and % optional on many uses of variables. This involves simply extending the function namespace to include all kinds of ...
Millsa Erlas
Jun 2, 2005 at 10:23 pm
Jun 4, 2005 at 6:56 pm -
As I understand it SMD is now not much more than a mechanism to place a constraint on the MMD, saying that there can only be one method or subroutine with the same short name. Why is this the ...
Yuval Kogman
Jun 30, 2005 at 4:08 pm
Jul 7, 2005 at 3:03 am -
Hi, I'm wondering, if it's possible with Perl 6 or not? class MyClass { method mymethod($par) { say "mymethod called!"; } } class ExClass is MyClass { mymethod(12); } # pugs myprog mymethod called! I ...
BÁRTHÁZI András
Jun 26, 2005 at 11:55 am
Jun 26, 2005 at 6:24 pm -
Hi, Is there a way, to catch, if I call a method, that doesn't exists, to run a default one? I'm thinking about an "error handler" method. If not, I would like to propose this: class MyClass { method ...
BÁRTHÁZI András
Jun 20, 2005 at 3:19 pm
Jun 20, 2005 at 3:42 pm -
This is inspired inpart by discussions I had on #perl6. Basically what is the behavour of the hyperop when applied to two hashes. The concensus was that the hashes would get unrolled into lists, and ...
David Formosa \(aka ? the Platypus\)
Jun 14, 2005 at 6:07 am
Jun 14, 2005 at 9:38 pm -
my $x = 3; my $y = \$x; say $y + 10; $y++; say $y; say $x; Currently in Pugs they print: 13 4 3 Is this sane? What is the scalar reference's semantics in face of a stringification and numification? I ...
Autrijus Tang
Jun 16, 2005 at 7:57 pm
Jun 17, 2005 at 7:50 pm -
Hi, I'm working on a web templating system, and I'm wondering how should I use rules? I have these defs: rule elem { \< wts \: (<[a..z] +) \/ \ } rule block { \< wts \: (<[a..z] +)\ (.*?)\< \/ wts \: ...
BÁRTHÁZI András
Jun 3, 2005 at 8:30 am
Jun 9, 2005 at 5:31 pm -
Two questions: Should {} be an empty hash rather than an empty code? Why did we change { %hash } from making a shallow copy of a hash to the code that returns %hash? Luke
Luke Palmer
Jun 1, 2005 at 8:20 am
Jun 9, 2005 at 7:48 am -
It's a funny old world... wrote Dan Sugalski on June 04, 2005 in his Squawks of the Parrot blog. Go and see: <http://www.sidhe.org/~dan/blog/archives/000400.html . Hence the subject. What the heck is ...
Anonymous coward
Jun 6, 2005 at 2:31 pm
Jun 6, 2005 at 11:59 pm -
Say I have: multi sub foo(Array $a,Int $b) {...} multi sub foo(Hash %a, Int $b) {...} and I want to (distinctly) wrap each multisub, say for testing, or AOP, or whatever. How do I get the two ...
Dakkar
Jun 3, 2005 at 11:20 pm
Jun 6, 2005 at 7:55 am -
How do I specify the signature of a context-sensitive function? sub foo() returns (what?) { return want ~~ Scalar ?? cheap_integer_result :: List_of_Sheep; } If it were two subs, one would "is ...
Gaal Yahas
Jun 1, 2005 at 12:25 am
Jun 1, 2005 at 4:51 pm -
I'm just wondering if a documentation trait on subs would be usefull. If we are going to have something like p6explain the doc trait could be used as the source for the infomation for it. p6explain ...
David Formosa \(aka ? the Platypus\)
Jun 30, 2005 at 4:34 am
Jul 2, 2005 at 5:13 pm -
To me Mr. Clean has always been a symbol of facism. It's this big strong guy who enforces cleanliness using chemicals. How mean is that? Whatever. Perl 6 is all about getting along with others. There ...
Yuval Kogman
Jun 30, 2005 at 2:33 am
Jul 1, 2005 at 1:48 am -
Hi Autrijus' journal mentions quasiquoting (Perl 5). I was wondering how that would work. Many languages use unusual syntax for quasiquoting and code splicing but Perl 6 is already nibbling into ...
Brad Bowman
Jun 27, 2005 at 11:50 pm
Jun 28, 2005 at 9:44 am -
Hi, I'm busy with creating a widget based web templating engine, but I have some problems, please help me. The engine would allow you to define widgets, and use those in your templates. I would like ...
BÁRTHÁZI András
Jun 14, 2005 at 3:59 pm
Jun 14, 2005 at 4:30 pm -
To me it is a trivial case that you want to provide a fake attribute which for all intents and purposes behaves exactly like there was a real attribute there, backing against another attribute. A ...
Sam Vilain
Jun 26, 2005 at 8:36 am
Jun 27, 2005 at 5:30 am -
OK, that last discussion was productive, but I think we all (including myself) overlooked the fact that the AUTOLOAD and AUTOSUB methods are implied to have different calling conventions; There is ...
Sam Vilain
Jun 21, 2005 at 2:03 am
Jun 21, 2005 at 3:46 am -
So, I was about to write the following test for Pugs: sub factorial (Int $n) { my sub factn (Int $acc, $i) { return $acc if $i $n; factn( $acc * $i, $i+1); } factn(1, 1); } When I thought to check ...
Piers Cawley
Jun 16, 2005 at 10:17 pm
Jun 16, 2005 at 10:28 pm -
Based on an off-list discussion, it turns out that unary C<= is not slurpy as mentioned in S04. The following patch to S04 corrects this; I've already applied the patch but thought I'd pass it by p6l ...
Patrick R. Michaud
Jun 15, 2005 at 10:37 pm
Jun 15, 2005 at 11:10 pm -
Following a conversation with Chip on IRC, is this my @y := @foo[0..][1]; legal?
Piers Cawley
Jun 14, 2005 at 10:58 am
Jun 14, 2005 at 6:58 pm -
A06 and S06 are in disagreement about the "caller" builtin, and I need help understanding either one. A06 [plus updates] stipulates this signature for caller: multi *caller (?$where = &?CALLER::SUB, ...
Gaal Yahas
Jun 8, 2005 at 6:21 pm
Jun 12, 2005 at 1:19 pm -
Further thoughts on the questions in comments invited. njs
Nigel Sandever
Jun 3, 2005 at 8:27 am
Jun 3, 2005 at 11:36 am -
Perl 6 Summary for 2005-05-24 through 2005-05-31 All~ Welcome to another Perl 6 summary, brought to you by Aliya's new friends, Masha Nannifer and Philippe, and my own secret running joke. Without ...
Matt Fowles
Jun 1, 2005 at 3:10 am
Jun 1, 2005 at 4:33 am -
Perl 6 Summary for 2005-06-21 through 2005-06-28 All~ Long time no see... err, write... uh, read... um... this. Yeah, long time no this. As Piers hinted, two weeks ago I moved. Moving sucks. For ...
Matt Fowles
Jun 29, 2005 at 12:11 am
Jun 29, 2005 at 2:34 pm -
The Perl 6 summary for the week ending 2005-06-07 Crumbs. I've remembered to write the summary this week. Now if I can just remember to bill O'Reilly for, err, 2003's summaries. Heck, it's not like ...
The Perl 6 Summarizer
Jun 8, 2005 at 9:27 pm
Jun 23, 2005 at 3:55 pm -
Hi, sub proxy () is rw { return new Proxy: FETCH = { 42 }, STORE = - $new { 23 }; } say proxy(); # 42 say proxy() = 40; # 40, 23, or 42? Currently I think the last line should output 40, consider: ...
Ingo Blechschmidt
Jun 14, 2005 at 12:39 pm
Jun 14, 2005 at 4:49 pm -
I'd like a ruling that &?CALLER::BLOCK is not a general-purpose block promoter, but only works if the calling block already marked itself as callable, perhaps by mentioning &?BLOCK in its body. ...
Chip Salzenberg
Jun 14, 2005 at 2:12 pm
Jun 14, 2005 at 3:58 pm -
Hey, Found out this morning that wizard.p6 suddenly stopped wondering and I was stumped as to why. The autrijus came along and pointed out that i was defineing an Object class of my own. This was ...
Eric
Jun 13, 2005 at 6:57 pm
Jun 13, 2005 at 11:34 pm -
Hi, just checking: Are anonymous macros allowed? my $macro = macro ($x) { "100$x" }; say $macro(3); # 1003 Of course, anonymous macros can't be called at compile-time, like normal macros: my $macro = ...
Ingo Blechschmidt
Jun 13, 2005 at 3:27 pm
Jun 13, 2005 at 6:30 pm -
Hi, I don't know what happens and where in the code, but... Anyway, it's strange... I have this code and input.tpl: --------------- 8< ------------------- rule sp { <[ ] } rule id { <[a..z] ...
BÁRTHÁZI András
Jun 10, 2005 at 8:29 am
Jun 10, 2005 at 9:57 am -
Hi, two quick questions: Are multi submethods allowed? my $x = undef; my $y = $x.some_method; # $y now contains an unthrown exception object, saying that undef # doesn't .can("some_method"), right? ...
Ingo Blechschmidt
Jun 5, 2005 at 8:25 pm
Jun 8, 2005 at 6:24 pm -
Hi, From the Perl6 and Parrot Essentials: ----- 8< ----- sub flat_hash ($first, $second) { say "first: $first"; say "sec. : $second"; } my %hash = (first = 1, second = 2); flat_hash(*%hash); ----- 8< ...
BÁRTHÁZI András
Jun 5, 2005 at 1:33 pm
Jun 5, 2005 at 2:09 pm -
Parrot 0.2.1 "APW" Released! On behalf of the Parrot team I'm proud to announce another monthly release of Parrot and I'd like to thank all involved people as well as our sponsors for supporting us. ...
Leopold Toetsch
Jun 4, 2005 at 10:36 am
Jun 4, 2005 at 2:27 pm -
All: I would like to revisit the following question as there was no decision reached AFAICT. ...
Joshua Gatcomb
Jun 2, 2005 at 2:59 pm
Jun 3, 2005 at 7:13 am -
Hi, I just would like to share it with you. We had a weekend at the lake Balaton on the last weekend, where I had a talk about Perl 6. The guys liked it (the girls had sunbath during the event :), ...
BÁRTHÁZI András
Jun 1, 2005 at 5:11 pm
Jun 2, 2005 at 7:10 am
Group Overview
group | perl6-language |
categories | perl |
discussions | 57 |
posts | 410 |
users | 69 |
website | perl6.org |
69 users for June 2005
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)