FAQ

Search Discussions

57 discussions - 410 posts

  • 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 KennedyAdam 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 YahasGaal 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 BlechschmidtIngo 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ásBÁ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ásBÁ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 CawleyPiers 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 GatcombJoshua 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 TangAutrijus 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 TangAutrijus 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 KlausnerThomas 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\)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 KennedyAdam 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 BlechschmidtIngo 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 CawleyPiers 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 BlechschmidtIngo 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 ErlasMillsa 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 KogmanYuval 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ásBÁ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ásBÁ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\)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 TangAutrijus 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ásBÁ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 PalmerLuke 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 cowardAnonymous 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 ...
    DakkarDakkar
    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 YahasGaal 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\)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 KogmanYuval 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 BowmanBrad 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ásBÁ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 VilainSam 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 VilainSam 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 CawleyPiers 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. MichaudPatrick 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 CawleyPiers 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 YahasGaal 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 SandeverNigel 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 FowlesMatt 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 FowlesMatt 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 SummarizerThe 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 BlechschmidtIngo 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 SalzenbergChip 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 ...
    EricEric
    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 BlechschmidtIngo 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ásBÁ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 BlechschmidtIngo 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ásBÁ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 ToetschLeopold 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 GatcombJoshua 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ásBÁRTHÁZI András
    Jun 1, 2005 at 5:11 pm
    Jun 2, 2005 at 7:10 am
Group Navigation
period‹ prev | Jun 2005 | next ›
Group Overview
groupperl6-language @
categoriesperl
discussions57
posts410
users69
websiteperl6.org

69 users for June 2005

Juerd: 38 posts Larry Wall: 36 posts BÁRTHÁZI András: 27 posts TSa (Thomas Sandlaß): 26 posts Damian Conway: 22 posts Piers Cawley: 20 posts Luke Palmer: 19 posts Patrick R. Michaud: 17 posts Ingo Blechschmidt: 15 posts Sam Vilain: 15 posts John Siracusa: 12 posts Rod Adams: 12 posts Autrijus Tang: 8 posts Gaal Yahas: 8 posts Adam Kennedy: 7 posts Joshua Gatcomb: 7 posts Chromatic: 6 posts David Formosa \(aka ? the Platypus\): 6 posts Rob Kinyon: 5 posts Brent 'Dax' Royal-Gordon: 4 posts
show more
Archives