FAQ

Search Discussions

43 discussions - 403 posts

  • Perl 5 has the qx// operator which does readpipe. I believe the function for it was added later. (It doesn't handle a LIST as system does, unfortunately.) qx// is also known as ``. Two backticks. ...
    JuerdJuerd
    Apr 14, 2004 at 4:23 pm
    Apr 21, 2004 at 8:05 pm
  • A few days ago I briefly discussed with Nicholas Clark (current perl 5.8 pumpking) about making perl5 code forward-compatible with perl6. A quick look through the mailing list archives didn't turn up ...
    David CantrellDavid Cantrell
    Apr 13, 2004 at 12:16 pm
    Apr 27, 2004 at 2:07 am
  • Let's say I have a class with some attributes: class Dog; has $.name is rw; has $.age is rw; has $.gender is rw; I initially decide to accept the default accessors. $dog.name = 'Ralph'; print ...
    John SiracusaJohn Siracusa
    Apr 19, 2004 at 6:20 pm
    Apr 23, 2004 at 8:27 pm
  • Those with encyclopedic knowledge of the perl6-language list will recall my impassioned, but ultimately futile plea for required named parameters--that is, required arguments to a function that must ...
    John SiracusaJohn Siracusa
    Apr 19, 2004 at 5:14 pm
    May 6, 2004 at 6:58 am
  • role A {has Cat $.x;} role B {has Dog $.x;} class Foo {does Cat; does Dog;} my Foo $bar; $bar.x; # Is this a Cat or a Dog? ===== Jonathan "Dataweaver" Lang
    Jonathan LangJonathan Lang
    Apr 21, 2004 at 7:36 am
    Apr 24, 2004 at 1:04 am
  • Can anyone explain the rules of placeholder attachment? i.e., in the example in Perl6::Placeholder's manpage, grep { $data{$^value} } 1..10; C<$^value is clearly intended to attach to the outer ...
    Trey HarrisTrey Harris
    Apr 18, 2004 at 7:51 pm
    Apr 23, 2004 at 5:01 pm
  • Mention is made of a typed undef in A12: <A12 which doesn't quite work, because $spot is undefined. What probably happens is that the my cheats and puts a version of undef in there that knows it ...
    Austin HastingsAustin Hastings
    Apr 23, 2004 at 5:31 pm
    Apr 23, 2004 at 8:05 pm
  • If it's not totally obvious to everyone, you should download a copy of A12 (I like the "printer-friendly" all-in-one-page version) as a hedge against the almost-inevitable slashdotting.
    Austin HastingsAustin Hastings
    Apr 17, 2004 at 5:13 pm
    Apr 23, 2004 at 4:13 pm
  • let's suppose I want to build a class that keeps track of the objects it creates. let's suppose that I want this class to be the base for a variety of classes. let's suppose that I decide, rather ...
    Aldo CalpiniAldo Calpini
    Apr 30, 2004 at 9:16 am
    May 4, 2004 at 4:19 pm
  • Suppose that I have, for example: class Session { has @:messages; method clear_messages() {...} method add_message($msg) {...} method have_messages() {...} method get_messages() returns Array {... ...
    Austin HastingsAustin Hastings
    Apr 30, 2004 at 9:56 pm
    May 1, 2004 at 2:08 pm
  • hello, sorry if this has been discussed before, I did a quick search in the Archive and the summaries but can't find a similar topic. I've just read A12, and while I really like the inherent ...
    Aldo CalpiniAldo Calpini
    Apr 23, 2004 at 8:54 am
    Apr 30, 2004 at 5:19 pm
  • At the end of A12, "Exportation" covered the idea that you will now say: sub foo() is export {...} Rather than the P5: @EXPORT=qw(foo); sub foo; Which is fine, except that in P5 we could say: use Foo ...
    Aaron ShermanAaron Sherman
    Apr 23, 2004 at 9:50 pm
    Apr 26, 2004 at 2:55 pm
  • A12 sez: If your delegation object happens to be an array: has @:handlers handles 'foo'; then something cool happens. <cool rays In this case Perl 6 assumes that your array contains a list of ...
    Austin HastingsAustin Hastings
    Apr 23, 2004 at 5:13 pm
    Apr 23, 2004 at 7:42 pm
  • Perl.com has just made A12 available: http://www.perl.com/pub/a/2004/04/16/a12.html Warning -- 20 pages, the first of which is a table of contents. Enjoy, -- c
    ChromaticChromatic
    Apr 17, 2004 at 12:31 am
    Apr 19, 2004 at 12:39 pm
  • Consider this code: if (specific_condition()) { if (detail()) { act(); } } elsif (general_condition()) { act(); } Logically, this turns into: if ((my $sc = specific_condition()) && detail()) { act(); ...
    Austin HastingsAustin Hastings
    Apr 2, 2004 at 12:47 pm
    Apr 2, 2004 at 11:12 pm
  • I had a thought tonight. Perl has a general principle that, in the absence of any indication otherwise, it should use a sensible default. This default generally matches the most common use of the ...
    Brent 'Dax' Royal-GordonBrent 'Dax' Royal-Gordon
    Apr 1, 2004 at 8:05 am
    Apr 1, 2004 at 1:00 pm
  • How would I declare a subtype of a class which messes with the dispatching mechanism to exclude certain methods and/or roles from it? ===== Jonathan "Dataweaver" Lang
    Jonathan LangJonathan Lang
    Apr 23, 2004 at 10:07 pm
    Apr 25, 2004 at 11:01 pm
  • Based on the "default accessors and encapsulation" thread, it seems like a Perl 6 equivalent of Class::MethodMaker will be still be useful in our (or at least "my") Brave New World. I've been ...
    John SiracusaJohn Siracusa
    Apr 25, 2004 at 6:07 pm
    Apr 26, 2004 at 2:41 pm
  • Well, I have a lot to digest, but off the top of my head (and having nothing to do with objects, but rather the string discussion at the end), it would be very useful if I could assert: no string ...
    Aaron ShermanAaron Sherman
    Apr 20, 2004 at 6:16 pm
    Apr 23, 2004 at 5:25 pm
  • I notice that when I write a grammar, I end up doing this an awful lot (in P::RD notation): list: term ',' list { make_node(@item[0,1,3]) } With attention on the actions, and assuming <autotree is ...
    Luke PalmerLuke Palmer
    Apr 19, 2004 at 7:06 am
    May 6, 2004 at 5:47 pm
  • How would I call attributes? Specifically, what if I'm calling a list attribute from a scalar object? my Dog $spot; my Dog @pack; $spot- @.legs; # INCORRECT (I hope) $spot@.legs; # INCORRECT? ...
    Jonathan LangJonathan Lang
    Apr 21, 2004 at 7:46 am
    Apr 23, 2004 at 2:54 pm
  • Larry's response also didn't really address the issue, since parameters marked with a + in the signature are optional, not required. The continuing discussion revealed why it is not possible to check ...
    John SiracusaJohn Siracusa
    Apr 28, 2004 at 6:16 pm
    Apr 28, 2004 at 7:34 pm
  • I am not happy about the versioning proposal. While A12 listed many properties that could apply to a a module such as version, subject, author etc, the versioning declaration class ...
    Richard ProctorRichard Proctor
    Apr 26, 2004 at 1:20 pm
    Apr 30, 2004 at 5:52 pm
  • I feel like "we" have pretty well staked out the letters p-e-r-l, but anything else is still up for grabs. (I think I brought this up before on the internals list regarding the PL_ prefix.) The C ...
    John SiracusaJohn Siracusa
    Apr 19, 2004 at 6:04 pm
    Apr 19, 2004 at 7:47 pm
  • I know these were discussed to death not that long ago, but reading Apocalypse 12 I had a query I couldn't remember if it had been covered before or not, and I certainly don't recall seeing it in the ...
    Matthew WaltonMatthew Walton
    Apr 19, 2004 at 9:01 am
    Apr 19, 2004 at 10:06 am
  • The Perl 6 Summary for the week ending 2004-04-04 Wednesday? Why did I leave it 'til Wednesday to write the summary? I must have *some* reason. Or maybe not. I'll give fair warning that I won't be ...
    The Perl 6 SummarizerThe Perl 6 Summarizer
    Apr 7, 2004 at 11:37 am
    Apr 28, 2004 at 5:02 pm
  • One of the beauties of the original Traits paper was that its roles had ways of specifying assertions of what criteria must be met by whatever classes they were to be composed into. Meanwhile, it's ...
    Jonathan LangJonathan Lang
    Apr 24, 2004 at 1:56 am
    Apr 24, 2004 at 2:41 am
  • Can role definitions be nested? That is: role A { role subRole1 {...}; role subRole2 {...}; ... }; As I see it, this ought to be equivelent to role A::subRole1 {...}; role A::subRole2 {...}; role A { ...
    Jonathan LangJonathan Lang
    Apr 23, 2004 at 10:01 pm
    Apr 24, 2004 at 1:10 am
  • "Then we simply claim that, under multiple dispatch, the "long name" of any multi routine includes its signature, and that visibility is based on the long name." (paragraph 3, "Multiple Dispatch") Is ...
    Jonathan LangJonathan Lang
    Apr 23, 2004 at 9:20 pm
    Apr 23, 2004 at 9:43 pm
  • One of the things that got a little less clear with A12 was the idea of multiple C<is clauses. Once upon a time, we talked about: my $spot is Dog is const is persistent is ...; Obviously some of ...
    Austin HastingsAustin Hastings
    Apr 20, 2004 at 3:45 pm
    Apr 20, 2004 at 4:23 pm
  • Apocalypse 12 was very clear about the difference between private and public class members, but it didn't say anything about protected ones? How can you define a protected member? Do you have to do ...
    Joe GottmanJoe Gottman
    Apr 20, 2004 at 6:55 am
    Apr 20, 2004 at 7:37 am
  • Quoting A12... Since $wagger is meant to be an object attribute, shouldn't it have a dot? And is omitting the dot an error? has Tail $.wagger = { .new(...) } # right? Also, based on the earlier ...
    Jonathan Scott DuffJonathan Scott Duff
    Apr 19, 2004 at 6:03 pm
    Apr 19, 2004 at 7:32 pm
  • A12 mentions that C<$foo.bar should return undef if C<$foo is undef. While I like the idea a lot, I don't think it should happen without distinction. In fact, that's what I would most expect C<.? to ...
    Luke PalmerLuke Palmer
    Apr 19, 2004 at 9:59 am
    Apr 19, 2004 at 12:31 pm
  • <A12 The upshot of these rules is that a private method call is essentially a subroutine call with a method-like syntax. But the private method we're going to call can be determined at compile time, ...
    Austin HastingsAustin Hastings
    Apr 17, 2004 at 3:51 pm
    Apr 17, 2004 at 5:07 pm
  • My understanding of the semantic of pairs as in A6: A pair in a given scalar context should return its first element coerced to match the said context. This seems to be a prerequisite to use pairs as ...
    Stéphane PayrardStéphane Payrard
    Apr 11, 2004 at 12:48 am
    Apr 13, 2004 at 12:59 pm
  • Hi, I'm lost. I read some Perl 6 related things and think I missed an important announcement. What is a list reference? It is as if lists and arrays are the same thing in Perl 6, but other documents ...
    JuerdJuerd
    Apr 10, 2004 at 2:17 am
    Apr 10, 2004 at 12:01 pm
  • Remember, the non-controversial decisions in A12 and the other Apocalypses, Exegeses, and Synopses are prime fodder to add to the P6 Stories wiki at http://p6stories.kwiki.org/. Good stories and, ...
    ChromaticChromatic
    Apr 29, 2004 at 6:19 am
    Apr 29, 2004 at 6:19 am
  • A LONG time ago, after an Apocalypse far, far away, I tried to define many built-in operators in Perl 6 to see if I "got it". After A12 I think I get it enough to try at least the math ops again. ...
    Aaron ShermanAaron Sherman
    Apr 25, 2004 at 6:45 pm
    Apr 25, 2004 at 6:45 pm
  • (Note: throughout this message, "method" refers to "sub"s and "submethods" as well.) I'm having trouble coming up with a solid argument for why Single Method Dispatch (SMD) is our default, when we ...
    Rod AdamsRod Adams
    Apr 24, 2004 at 4:57 am
    Apr 24, 2004 at 4:57 am
  • The Perl 6 Summary for the fortnight ending 2004-04-18 The only problem with summarizing two week's worth of Perl 6 happenings is that there's twice as much stuff to summarize. Still, there's no way ...
    The Perl 6 SummarizerThe Perl 6 Summarizer
    Apr 20, 2004 at 5:46 pm
    Apr 20, 2004 at 5:46 pm
  • Since this horse came back to life, I'm going to give it a good thrashing, and I've got goons to help me. I've asked the Phoenix Perl Mongers for their take on the situation. I've posted a ...
    Scott WaltersScott Walters
    Apr 20, 2004 at 7:04 am
    Apr 20, 2004 at 7:04 am
  • I think I have somesing missed: is it possible to open (that is read and write) files in perl6 programmes? Those programmes that can be run under current parrot release. Thanks.
    Andrew ShitovAndrew Shitov
    Apr 17, 2004 at 7:42 am
    Apr 17, 2004 at 7:42 am
  • I found Luke Palmer's Synopsis 3 on perl.com at http://www.perl.com/pub/a/2004/03/18/synopsis3.html but didn't see it out at http://dev.perl.org/perl6/synopsis/. -- Garrett Goebel IS Development ...
    Garrett GoebelGarrett Goebel
    Apr 15, 2004 at 9:08 pm
    Apr 15, 2004 at 9:08 pm
Group Navigation
period‹ prev | Apr 2004 | next ›
Group Overview
groupperl6-language @
categoriesperl
discussions43
posts403
users59
websiteperl6.org

59 users for April 2004

Larry Wall: 55 posts Juerd: 41 posts Austin Hastings: 38 posts Aaron Sherman: 30 posts John Siracusa: 23 posts Luke Palmer: 18 posts Abhijit A. Mahabal: 14 posts Brent 'Dax' Royal-Gordon: 12 posts Mark J. Reed: 11 posts Dan Sugalski: 10 posts Jonathan Lang: 10 posts Matthew Walton: 9 posts Matthijs van Duin: 9 posts Chromatic: 8 posts Damian Conway: 8 posts Scott Walters: 8 posts Jonathan Scott Duff: 7 posts Aldo Calpini: 6 posts John Williams: 6 posts Simon Cozens: 6 posts
show more
Archives