FAQ

Search Discussions

36 discussions - 188 posts

  • So, how does one get an object to pretend to be a value type for purposes of assignment? Currently if I do the following class Dog { ... } my $a = Dog.new; my $b = $a; then $a and $b both refer to ...
    Patrick R. MichaudPatrick R. Michaud
    Sep 14, 2008 at 2:08 pm
    Sep 19, 2008 at 11:19 pm
  • Rakudo and I have a disagreement over this: I expect to be able to assign to a $.foo attribute in methods within the class, whereas Rakudo demands the "is rw" attribute in order to do that. We ...
    Carl MäsakCarl Mäsak
    Sep 17, 2008 at 10:23 am
    Sep 20, 2008 at 12:33 am
  • I'm pondering what the proper syntax is for a subroutine parameter with both a trait and a default. That is... sub foo ($arg = 42) and sub foo ($arg is readonly) together in one parameter. Would that ...
    Michael G SchwernMichael G Schwern
    Sep 22, 2008 at 2:03 am
    Sep 26, 2008 at 5:38 am
  • Is there something more up-to-date concerning "Perl 6 best practices" that are presently-recommended (by p6l or @Larry) than the following item on the Perl 6 wiki? ...
    Conrad SchneikerConrad Schneiker
    Sep 13, 2008 at 5:25 pm
    Dec 21, 2008 at 9:17 am
  • I think my question can be best understood by example -- what does the following produce? my @a = 1,2,3,4,5; for @a { .say; @a = (); } My question is whether the change to @a inside the for loop ...
    Patrick R. MichaudPatrick R. Michaud
    Sep 9, 2008 at 3:10 pm
    Sep 13, 2008 at 5:53 am
  • Hello there, what :foo< should exactly produce? At first I was expecting: foo = "" but in Rakudo: foo = [] and it looks like the right thing on the other hand. (I have started this topic in the ...
    ИльяИлья
    Sep 6, 2008 at 8:06 am
    Sep 9, 2008 at 3:32 pm
  • Today a patch to rakudo brought up the question what split() should do if the $limit argument is either zero or negative. In Perl 5 a negative limit means "unlimited", which we don't have to do ...
    Moritz LenzMoritz Lenz
    Sep 23, 2008 at 9:27 am
    Sep 30, 2008 at 2:19 am
  • Given that we have say +'12'; # 12 say +'0b1100'; # 12 say +'0x0c'; # 12 what should the following produce? say +':2<1a '; # 0? Failure? 12? Pm
    Patrick R. MichaudPatrick R. Michaud
    Sep 14, 2008 at 5:31 pm
    Sep 16, 2008 at 8:01 am
  • Howdy, The test suite is considered "official" as in "everything that passes the (completed) test suite may name itself Perl 6", and nearly all of these files 'use Test'; However we don't ship an ...
    Moritz LenzMoritz Lenz
    Sep 2, 2008 at 12:10 pm
    Sep 3, 2008 at 11:35 am
  • Recently, in November, we've had reason to clone the Rakudo Test.pm and add an implementation (viklund++) of is_deeply, for testing whether two arrays, pairs or hashes are deeply -- recursively -- ...
    Carl MäsakCarl Mäsak
    Sep 14, 2008 at 1:09 pm
    Sep 14, 2008 at 9:37 pm
  • Consider something like a 'map' call, only I want it to be lazy. I know that a list can contain internally iterators that generate elements as needed or perhaps in the background. But how do you ...
    John M. DlugoszJohn M. Dlugosz
    Sep 7, 2008 at 10:00 pm
    Sep 8, 2008 at 7:50 pm
  • There are some tests for List.uniq in the test suite, and pugs implements it, but it's not in S29. Damian seems to have though we should have it: ...
    Moritz LenzMoritz Lenz
    Sep 7, 2008 at 12:05 pm
    Sep 8, 2008 at 12:56 pm
  • Hi, what should ''.split('') return? The empty list, or a list with one null string? Moritz -- Moritz Lenz http://moritz.faui2k3.org/ | http://perl-6.de/
    Moritz LenzMoritz Lenz
    Sep 19, 2008 at 3:58 pm
    Sep 19, 2008 at 5:09 pm
  • On behalf of the Parrot team, I'm proud to announce Parrot 0.7.1 "Manu Aloha." Parrot (http://parrotcode.org/) is a virtual machine aimed at running all dynamic languages. Parrot 0.7.1 is available ...
    Patrick R. MichaudPatrick R. Michaud
    Sep 17, 2008 at 5:35 am
    Sep 19, 2008 at 11:10 am
  • I'm trying to pin down what $string.match(/pat/) should be returning. From S05: Under "Return values from match objects" "A match always returns a Match object..." From S29: Under the definition of ...
    Chris DavazChris Davaz
    Sep 18, 2008 at 10:11 am
    Sep 19, 2008 at 3:53 am
  • I'm not sure if it's anywhere in the specs, but I was expecting to be able to do this: .say for =$in unless $foo; Where we have multiple modifiers, here "for" and "unless". Is this in the specs? If ...
    Chris DavazChris Davaz
    Sep 15, 2008 at 10:01 am
    Sep 17, 2008 at 4:57 pm
  • Well, the subject line already contains my question. I wrote some tests about scalar autovivification. The short sequence: my Str $x; $x ~= 'a'; produces 'Stra' in pugs, because $x contains a Str ...
    Moritz LenzMoritz Lenz
    Sep 14, 2008 at 6:40 pm
    Sep 15, 2008 at 11:05 am
  • I'm trying to work out some details of this area, but I don't understand what S04 is trying to say. Could someone please point me in the right direction? I'd be happy to then edit the S04 to ...
    John M. DlugoszJohn M. Dlugosz
    Sep 3, 2008 at 11:44 pm
    Sep 6, 2008 at 5:51 pm
  • The when statements are just like if statements. After executing one, it goes on to the following statement which does not have to be a conditional statement. That is, you can mix when statements ...
    John M. DlugoszJohn M. Dlugosz
    Sep 6, 2008 at 4:39 pm
    Sep 6, 2008 at 5:07 pm
  • The subject says it all: should !~~ with a regex on the RHS set $/? Cheers, Moritz -- Moritz Lenz http://moritz.faui2k3.org/ | http://perl-6.de/
    Moritz LenzMoritz Lenz
    Sep 6, 2008 at 9:43 am
    Sep 6, 2008 at 4:54 pm
  • Lines 46-52 of t/spec/S02-literals/pairs.t claims that the colonpair notation should produce a Bool instead of an Int: #?rakudo todo 'Adverbial pairs without should produce a Bool (not Int)' is ...
    Patrick R. MichaudPatrick R. Michaud
    Sep 26, 2008 at 4:59 am
    Sep 26, 2008 at 7:09 am
  • This is just a reminder that I have files posted at <http://www.dlugosz.com/Perl6/offerings/ waiting for someone in authority to inspect and merge.
    John M. DlugoszJohn M. Dlugosz
    Sep 15, 2008 at 11:08 pm
    Sep 16, 2008 at 12:06 am
  • While S02 reserves some all caps names, I assume that all lower case class names are okay (I don't see anything against them). Rakudo doesn't support them. Is this a bug or is there something in the ...
    Stephen SimmonsStephen Simmons
    Sep 3, 2008 at 4:58 am
    Sep 3, 2008 at 11:04 am
  • It is weird indeed, but from my grasp of the synopsis it's correct nonetheless. But IMHO it feels a bit less weird than the Perl 5 behaviour where the context decides. Perl 5: say reverse "abc"; # ...
    Moritz LenzMoritz Lenz
    Sep 27, 2008 at 4:32 pm
    Sep 27, 2008 at 4:32 pm
  • split seems to be a suprisingly tricky beast ;-) To quote S29: : As with Perl 5's split, if there is a capture in the pattern it : is returned in alternation with the split values. Unlike with : Perl ...
    Moritz LenzMoritz Lenz
    Sep 23, 2008 at 12:57 pm
    Sep 23, 2008 at 12:57 pm
  • According to the test suite (t/spec/S29-array/kv.t), the .kv method is defined on arrays to produce an interleaved list of indices and values: my @array = <a b c d ; say @array.kv.perl; # [ 0, "a", ...
    Patrick R. MichaudPatrick R. Michaud
    Sep 21, 2008 at 11:05 pm
    Sep 21, 2008 at 11:05 pm
  • Please see my musings at <http://www.dlugosz.com/Perl6/web/background.html . I think this ties together a few concepts quite nicely. --John
    John M. DlugoszJohn M. Dlugosz
    Sep 14, 2008 at 11:07 pm
    Sep 14, 2008 at 11:07 pm
  • Author: larry Date: Wed Sep 10 12:03:19 2008 New Revision: 14582 Modified: doc/trunk/design/syn/S03.pod Log: inconsistent meaning of [,] noticed by moritz++ Modified: doc/trunk/design/syn/S03.pod ...
    LarryLarry
    Sep 10, 2008 at 7:03 pm
    Sep 10, 2008 at 7:03 pm
  • Author: pmichaud Date: Wed Sep 10 08:14:29 2008 New Revision: 14581 Modified: doc/trunk/design/syn/S03.pod Log: Typo fix "last" - "list" Modified: doc/trunk/design/syn/S03.pod ...
    PmichaudPmichaud
    Sep 10, 2008 at 3:14 pm
    Sep 10, 2008 at 3:14 pm
  • While pondering whether or not the 'map' function is lazy, I had a flash of insight. Let's assume that it is, and go with an example of @results = map { process_item($_) } @files; Now ponder the ...
    John M. DlugoszJohn M. Dlugosz
    Sep 8, 2008 at 10:57 pm
    Sep 8, 2008 at 10:57 pm
  • Hi, we had the discussion a few times on how to match against a grammar, for example here: http://irclog.perlgeek.de/parrot/2008-05-31#i_322490 Attached patch adds the $string ~~ Grammar.new form to ...
    Moritz LenzMoritz Lenz
    Sep 8, 2008 at 3:36 pm
    Sep 8, 2008 at 3:36 pm
  • Author: larry Date: Sat Sep 6 21:22:00 2008 New Revision: 14580 Modified: doc/trunk/design/syn/S03.pod Log: "where" as Junctional infix resembling "&", but with order guaranteed Modified: ...
    LarryLarry
    Sep 7, 2008 at 4:22 am
    Sep 7, 2008 at 4:22 am
  • Not all undefined values are unhandled Failures. It can be an undefined protoobject, possibly even auto-vivifying. My understanding is that undef by itself will return a generic undef object, whose ...
    John M. DlugoszJohn M. Dlugosz
    Sep 5, 2008 at 10:59 pm
    Sep 5, 2008 at 10:59 pm
  • Author: larry Date: Mon Sep 1 18:12:53 2008 New Revision: 14579 Modified: doc/trunk/design/syn/S04.pod Log: clarify that statement introducers may not use function syntax, which is reserved for user ...
    LarryLarry
    Sep 2, 2008 at 1:13 am
    Sep 2, 2008 at 1:13 am
  • Author: larry Date: Mon Sep 1 17:02:00 2008 New Revision: 14578 Modified: doc/trunk/design/syn/S02.pod Log: added Rat type to list of immutables, mbiggar++ Modified: doc/trunk/design/syn/S02.pod ...
    LarryLarry
    Sep 2, 2008 at 12:02 am
    Sep 2, 2008 at 12:02 am
  • I'm not quite sure. To quote S03: "The first section contains privileged syntax; if a match can be done via one of those entries, it will be. These special syntaxes are dispatched by their form ...
    Moritz LenzMoritz Lenz
    Sep 1, 2008 at 3:51 pm
    Sep 1, 2008 at 3:51 pm
Group Navigation
period‹ prev | Sep 2008 | next ›
Group Overview
groupperl6-language @
categoriesperl
discussions36
posts188
users37
websiteperl6.org

37 users for September 2008

John M. Dlugosz: 29 posts Patrick R. Michaud: 20 posts Moritz Lenz: 19 posts TSa: 18 posts Larry Wall: 16 posts Mark J. Reed: 10 posts Daniel Ruoso: 8 posts Carl Mäsak: 7 posts Michael G Schwern: 6 posts Brandon S. Allbery KF8NH: 5 posts Chris Davaz: 5 posts Darren Duncan: 5 posts Larry: 4 posts Aristotle Pagaltzis: 4 posts Damian Conway: 3 posts David Green: 3 posts Jon Lang: 3 posts Eric Wilhelm: 2 posts Jonathan Worthington: 2 posts TSa (Thomas Sandlaß): 2 posts
show more
Archives