pugscode.org/ | nopaste: sial.org/pbot/perl6 | pugs: [~] <m oo se> (or rakudo:, kp6:, elf: etc.) (or perl6: for all) | irclog: irc.pugscode.org/
Set by Tene on 29 July 2008.
meppl good night 00:50
pugs_svn r22934 | lwall++ | [Cursor] random fiddling 02:09
r22934 | lwall++ | [STD] add type on ::T
dduncan question about module names ... is it no longer valid to say "module Foo-1.2.3-CPAN:jrandom;"? ... the current synopsis 11 doesn't seem to mention that form, but it would make sense to excise it if Perl 6 nonquoted symbol names may now have a hyphen in them? 02:17
at least I thought I saw the latter change documented the other week, allowing - in symbols 02:18
dduncan okay, I found it 02:36
apparently back in March 2007, synopsis revision 14317, got rid of the ordered hyphen form, leaving just the adverbial form
pugs_svn r22935 | pmurias++ | [smop] deleted old mention of smop's previous name 10:26
pmurias ruoso: should i delete smop documentation from the wiki?
pmurias ruoso: s/smop/slime/ 10:39
lizsac hey 10:54
is it possible to iterate through the alphabet with something like [A-Z] or with .. 10:55
pmurias lizsac: you mean in regexes? 10:56
<[A..Z]> 10:57
lizsac hrmm i was hoping to do it in a for loop
i want to tack on a letter to the end of a string 10:58
a-z
i can unroll an array of letters i was just curious of there was a better method 11:00
pmurias pugs: say 'a'..'b' 11:01
p6eval pugs: OUTPUT[ab␤]
pmurias pugs: say 'a'..'f'
p6eval pugs: OUTPUT[abcdef␤]
lizsac heh 11:02
that messed up my terminal
damn 11:03
lizsac hah i guess you can 11:10
my @alphabet = "A" .. "Z";
how would i do that in a loop 11:12
err why would i want to 11:16
pmurias pugs: my $str;for 'A' .. 'Z' -> $x {$str = $str ~ $x};say $str
p6eval pugs: OUTPUT[ABCDEFGHIJKLMNOPQRSTUVWXYZ␤]
dbrock I have return "... {$method<name>} ...", and that works; but if I change it to my $name = $method<name>; return "... {$name} ...", it doesn't --- any ideas? 11:48
I just get a blank string instead of $name 11:49
oh, I changed it to my $name = ~$method<name>; return "... {$name} ..." and now it works 11:53
dbrock is ?? :: not implemented yet? 11:56
rindolf dbrock: isn't it ?? !! 11:58
dbrock ah!
dbrock how do I do a regexp substitution in Rakudo? 12:13
I've tried $foo ~~ s/bar/baz/; and $foo ~~ s[bar] = 'baz'; and neither works 12:14
ah, $foo.subst(/bar/, 'baz') works 12:15
pmurias ruoso: do we have a bool method or is it true? 15:31
and do we have "true" and false for the native true and false constants 15:33
s/false/"false"
pugs_svn r22936 | pmurias++ | [m0ld] added noop 15:35
r22936 | pmurias++ | [mildew] noop is used for the then label in an if
pugs_svn r22937 | particle++ | [t/spec rakudo] fudge some tests for slurpy params 15:57
ruoso pmurias, we have a "bool" method, but it's wrong... it should be .true... 16:56
pmurias, in SMOP we have native true and native false, I'm not sure how that's represented in Perl 6 16:57
it seems that nobody has a lowercase true
ruoso but I think there should be a way to say "native true" and "native false" 16:57
perl6: say true; 16:58
p6eval elf 22847: OUTPUT[Undefined subroutine &GLOBAL::true called at (eval 119) line 3.␤ at ./elf_f line 3861␤]
..rakudo 32467: OUTPUT[Statement not terminated properly at line 1, near "true;"␤␤current instr.: 'parrot;PGE;Util;die' pc 129 (runtime/parrot/library/PGE/Util.pir:83)␤]
..pugs: OUTPUT[*** ␤ Unexpected ";"␤ at /tmp/yjf3Cg1bai line 1, column 9␤]
ruoso maybe True.true and False.true 17:02
since they both override the true method
later & 17:05
pmurias according to S02 perl6 has a bool type 18:01
moritz_ re 18:11
lambdabot moritz_: You have 3 new messages. '/msg lambdabot @messages' to read them.
pugs_svn r22938 | moritz++ | [t] move some junction tests 18:21
pmurias moritz_: hi 18:34
pugs_svn r22939 | moritz++ | [t] update to TASKS and set attributes of arrayhash.t
moritz_ hi pmurias
pmurias the irclog is back nice 18:35
moritz_ it died because it couldn't connect to the DB 18:36
moritz_ usually I start it an endless loop from the shell, but this time I seem to have screwed it up :/ 18:37
rakudo_svn r32469 | pmichaud++ | [rakudo]: Add pointy blocks to if/unless statements (partial RT #58008) 18:50
rakudo_svn r32471 | pmichaud++ | [rakudo]: Add pointy blocks to while/until statements (RT #58008). 19:00
pmichaud std: repeat -> $x { say $x; } while 0; 19:03
p6eval std 22847: OUTPUT[Unknown routines:␤ repeat called at 1 ␤parsed␤]
pmichaud std: repeat while 0 -> $x { say $x; }
p6eval std 22847: OUTPUT[parsed␤]
rakudo_svn r32472 | jonathan++ | [rakudo] First cut of 'is also'. Allows methods to be added to classes at runtime. 19:50
pmurias ruoso: native int is a value type so it shouldn't have a postfix:<++> right? 19:58
rakudo_svn r32473 | moritz++ | [rakudo] More fiddling with ++/-- aka succ/pred. Closes [perl #59596]. 20:10
r32473 | moritz++ | Patch courtesy by Vasily Chekalkin, bacek++
pugs_svn r22940 | pmurias++ | [smop] changed "bool" to "true", native_int uses the RI DSL 20:26
rakudo_svn r32474 | pmichaud++ | [rakudo]: refactor xblock handling somewhat 20:30
pugs_svn r22941 | moritz++ | [t/spec] silence a bogus success report for rakudo. 20:33
r22942 | moritz++ | [t/spec] unfudge two tests for rakudo in boolean-context.t 20:34
pugs_svn r22943 | pmurias++ | [mildew] if works 20:55
pugs_svn r22944 | moritz++ | [t/spec] in my.t, don't actually generate a Signature. 20:56
moritz_ perlgeek.de/blog-en/perl-6/tidings-2008-11.html comments welcome. 21:04
lambdabot Title: blog | Perlgeek.de Blog :: Perl 6 Tiding for November 2008
pmurias moritz_: the XS bindings not allow you to do very much now, just run some mold bytecode atm but once we figure out how to handle continuation barriers sanely it should be very easy to finish simple smop embedding 21:25
moritz_ what does "finish simple smop embedding" mean for the Perl 5 programmer? that he can write an OO system with smop as backend? 21:28
pmurias moritz_: call methods on smop objects 21:33
pmurias using smop as a backend for an OO system would require more advanced integration to be done efficiently 21:38
moritz_ wonders if the Moose folks are interested in that ;) 21:41
pmurias moritz_: it's an interesting question 21:50
pugs_svn r22945 | pmurias++ | [mildew] small fixes to make t/p6opaque and t/pure_prototype_how work again 22:04
r22945 | pmurias++ | [smop] small changes to p6opaque which should be examined by ruoso++
pmurias does bind := return the right or the left side? 22:35
moritz_ it's right associative, so $a := $b := $c should be the same as $a := ($b := $c)... 22:43
but that doesn't answer your question, does it?
pmurias what does ($a := $b) := $c do? 22:44
pugs_svn r22946 | pmurias++ | [smop] moved tests 19,15 to mildew, infix:<:=> returns the left side 22:45
moritz_ croak?
moritz_ doesn't know, and doesn't have his wits available either
pmurias moritz_: what happened to your wits? 22:46
moritz_ dunno... too much work and too little sleep, probably 22:47
pmurias sleep& 22:57
moritz_ (and a slight overdose of Fortran 77, perhaps ;) 22:57
good night
ruoso @tell pmurias yes, postfix:<++> is supposed to be a sub not a method of int... it was dumbness of my part 23:21
lambdabot Consider it noted.
ruoso @tell pmurias I had seen the changes in p6opaque and it seems very much ok 23:32
lambdabot Consider it noted.