FAQ

Search Discussions

19 discussions - 249 posts

  • A6 included examples of syntax for specifying the type of the key for a hash: my %pet is Hash(keytype = Str, returns = Cat) None of the synopses have anything like this. S6 talks about the types of ...
    Abhijit MahabalAbhijit Mahabal
    Dec 3, 2004 at 10:24 pm
    Dec 10, 2004 at 1:22 pm
  • I'm reviewing the updated S05 (2 Dec 2004) and ran across this in the "Hypothetical Variables" section: # Pairs of repeated captures can be bound to hashes: / %<options := [ (<ident ) = (\N+) ]* / ...
    Patrick R. MichaudPatrick R. Michaud
    Dec 7, 2004 at 7:11 pm
    Dec 10, 2004 at 5:56 pm
  • Considering that "proper" and common usage, not to mention strictures, dictates a heavy insistence on 'my'. I will thus assume that creation of lexical variables with 'my' far out numbers the ...
    Rod AdamsRod Adams
    Dec 18, 2004 at 8:53 pm
    Dec 21, 2004 at 2:08 pm
  • Consider a class (e.g., the hypothetical Geometry::Triangle) that can have several attributes (side1, side2, side3, angle1, ang_bisector1, side_bisector, altitude1 and so forth), most of which will ...
    Abhijit MahabalAbhijit Mahabal
    Dec 10, 2004 at 4:05 pm
    Dec 16, 2004 at 8:18 pm
  • hm.. consider that: perl5: open $fh, 'file'; $first_line = <$fh ; @remaining = <$fh ; perl6: $fh = open 'file'; $first_line = $fh(); @remaining = $fh(); I thought about parallels between arrays and ...
    Alexey TrofimenkoAlexey Trofimenko
    Dec 4, 2004 at 5:04 pm
    Dec 10, 2004 at 3:16 pm
  • for 1..10_000_000 { my ($a,$b,$c) = ... ... } vs. for 1..10_000_000 { state ($a,$b,$c) = ... ... } latter looks like it would run faster, because no reallocation envolved here. I've read an advice ...
    Alexey TrofimenkoAlexey Trofimenko
    Dec 4, 2004 at 3:31 am
    Dec 10, 2004 at 2:52 pm
  • From http://dirtsimple.org/2004/12/python-is-not-java.html "In Java, you have to use getters and setters because using public fields gives you no opportunity to go back and change your mind later to ...
    John SiracusaJohn Siracusa
    Dec 3, 2004 at 7:07 pm
    Dec 4, 2004 at 12:41 am
  • What happens to the flip flop operator? Will .. in scalar context remain the same? What comes in place of ...? (An adverb?) Juerd
    JuerdJuerd
    Dec 4, 2004 at 12:11 am
    Dec 10, 2004 at 12:39 pm
  • Howdy, While browsing the updated synopses, I noticed a problem with how scalar container methods are called. Currently, both value methods and container methods are shown in the synopses as being ...
    Ashley WintersAshley Winters
    Dec 4, 2004 at 12:01 pm
    Dec 6, 2004 at 7:42 pm
  • in perl5 C<use strict doesn't save us from typo bugs in code like use strict; print $OtherPackage::erroneuos_name; in perl5 C<our $var auotovivifies ${__PACKAGE__ . "::"}{var} glob at compile time, ...
    Alexey TrofimenkoAlexey Trofimenko
    Dec 29, 2004 at 3:55 am
    Jan 4, 2005 at 6:56 pm
  • Perl 6 Summary for 2004-12-06 through 2004-12-20 All~ The observant among you might notice that I missed last week's summary. With the hubbub and confusion of the holidays, I blame ninjas, in ...
    Matt FowlesMatt Fowles
    Dec 21, 2004 at 2:52 am
    Dec 21, 2004 at 5:53 am
  • Attributes are declared with C<has , but also have a unique signil C<$. . So is it strictly necessary to declare them? Or rather, is it C<no strict ly necessary -- i.e. is the following legal? no ...
    Dave WhippDave Whipp
    Dec 10, 2004 at 5:25 pm
    Dec 10, 2004 at 6:55 pm
  • According to S12, it is possible to supply the object layout to bless(), like so: $object = $class.bless(:CREATE[:repr<P6opaque ] :k1($v1) :k2($v2)) But in the section "Introspection", "layout" is a ...
    Abhijit MahabalAbhijit Mahabal
    Dec 7, 2004 at 5:33 pm
    Dec 8, 2004 at 11:42 pm
  • In S12, I see examples like: role Pet[Type $petfood = TableScraps] { method feed (::($petfood) $food) {...} } I assume that means lexicals declared as part of a parametric specialization declaration ...
    Ashley WintersAshley Winters
    Dec 7, 2004 at 11:40 pm
    Dec 8, 2004 at 4:55 am
  • Perl 6 Summary for 2004-11-29 through 2004-12-06 All~ Last week I asked for help identifying the source of a quotation. One friendly soul suggested Alan J. Perlis, but could not find an actual ...
    Matt FowlesMatt Fowles
    Dec 7, 2004 at 2:36 am
    Dec 8, 2004 at 3:11 am
  • S2: my $foo = 42; say %MY::<$foo ; # prints "42" S6: Perl5ish subroutine declarations ... sub say { print qq{"@_"\n}; } # args appear in @_ Because C<print has no final newline, I would expect C<say ...
    Stéphane PayrardStéphane Payrard
    Dec 6, 2004 at 7:27 pm
    Dec 6, 2004 at 7:45 pm
  • my $var="foo"; { temp $var; say $var; } would it be undef or "foo"? if the former, how could I make $var to contain a copy of original content? using analogy with my $x = $x, that's not going to ...
    Alexey TrofimenkoAlexey Trofimenko
    Dec 4, 2004 at 3:01 am
    Dec 4, 2004 at 3:10 am
  • How equivalent are << and «? Does use of one idiom imply the closing quote is the same. ie are the following allowed, prohibited or what? <<list of words» «list of words Just thinking... Richard -- ...
    Richard ProctorRichard Proctor
    Dec 3, 2004 at 9:31 pm
    Dec 3, 2004 at 10:23 pm
  • [ From p6i ] Patrick R. Michaud writes: Well, IAAL. :-) In particular, xor is analogous, operatorwise, to the junctive one(). one() represents its single true value when it evaluates to true in ...
    Luke PalmerLuke Palmer
    Dec 10, 2004 at 8:44 pm
    Dec 10, 2004 at 8:44 pm
Group Navigation
period‹ prev | Dec 2004 | next ›
Group Overview
groupperl6-language @
categoriesperl
discussions19
posts249
users41
websiteperl6.org

41 users for December 2004

Larry Wall: 52 posts Luke Palmer: 28 posts Smylers: 12 posts Alexey Trofimenko: 11 posts David Green: 11 posts Juerd: 11 posts Abhijit Mahabal: 10 posts Michele Dondi: 10 posts Ashley Winters: 9 posts Matthew Walton: 9 posts Austin Hastings: 8 posts Brent 'Dax' Royal-Gordon: 8 posts Rod Adams: 8 posts Matt Diephouse: 7 posts John Siracusa: 6 posts Dan Brian: 4 posts John Macdonald: 4 posts Patrick R. Michaud: 4 posts David Storrs: 3 posts David Wheeler: 3 posts
show more
Archives