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.
Auzon rakudo: say #{foo} "hi" 00:00
p6eval rakudo 29834: OUTPUT[␤]
Auzon rakudo: say #(foo) "hi"
p6eval rakudo 29834: RESULT[␤1]
Auzon Now that's odd.
Limbic_Region rakudo: $_ = 'blah'; say #{foo} "hi" 00:21
p6eval rakudo 29834: OUTPUT[␤]
Limbic_Region yep, odd
Auzon rakudo: say
p6eval rakudo 29834: OUTPUT[␤]
pugs_svn r21900 | ruoso++ | [smop] skeleton for the default block signature lowlevel implementation in place... it should not be very hard to implement.. 01:37
TimToady rakudo: say #(just a line-end comment to rakudo) die "never got here" 03:10
p6eval rakudo 29834: OUTPUT[␤]
TimToady as for $_, you have to use .say to get at that
StephenPollei rakudo: my $good=0; try {my Int $foo=3; $foo=4.1; CATCH {$good=1;} } ; $good; 03:50
p6eval rakudo 29834: OUTPUT[Statement not terminated properly at line 1, near "{$good=1;}"␤current instr.: 'parrot;PGE::Util;die' pc 120 (runtime/parrot/library/PGE/Util.pir:82)␤]
StephenPollei pugs: my $good=0; try {my Int $foo=3; $foo=4.1; CATCH {$good=1;} } ; $good; 03:51
p6eval pugs: RESULT[\0]
TimToady nobody actually checks type constraints yet 03:53
StephenPollei Am I writing the try catch block correctly? and if you put a float into int should it roundoff or throw some kind of type check exception? I think it should round.
I wish to add tests into t/spec that's why I'm interested. I'm just getting started with it 03:54
TimToady p5 currently just truncates, but I think p6 specs floor
StephenPollei rakudo: my $good=0; try {my Int $foo=3; $foo='str'; CATCH {$good=1;} } ; $good;
p6eval rakudo 29834: OUTPUT[Statement not terminated properly at line 1, near "{$good=1;}"␤current instr.: 'parrot;PGE::Util;die' pc 120 (runtime/parrot/library/PGE/Util.pir:82)␤]
TimToady actually, it specs truncation in S09 03:56
StephenPollei OK and the 'str' one does it cause exception or does it become 0 or does it become 'str'.chars 03:57
TimToady that would throw an exception, I think, but maybe it's just a warning (resumable exception by default) 03:59
StephenPollei yes I forgot about warning, has to be checked with .defined or .true before anything or it then raises the exception 04:00
if it was int instead of Int it would have to throw excpetion on the spot or put a 0 or 'str'.elems into the varible 04:03
Taras Once the dangers of asbestos were proven, it was removed from many building materials2014but not before it was fitted in nearly every home built before 1978. 04:03
TimToady yeah, if it's Int it can just assign an unthrown exception, but there isn't that option for int 04:05
since int is a Just type, not a Maybe type, in haskellian terms
StephenPollei OK I think I can figure out how to write a test for it, thanks. 04:10
StephenPollei pugs: + 'str' ; 05:34
p6eval pugs: RESULT[0.0]
StephenPollei rakudo: + 'str' ;
p6eval rakudo 29834: RESULT[0]
pmurias @tell ruoso do we plan about to realease smop on CPAN anytime soon? 08:42
lambdabot Consider it noted.
nicky00 hello everyone 10:23
i've got a question
how would you parse this .asp>COLLE SITTARD MACHINEHANDEL BV</a></b></td></tr><tr>
to keep just COLLE SITTARD MACHINEHANDEL ?
zamolxes is that really ".asp>" ? 10:29
nicky00 yeah 10:38
its cool tho
solved it
thank you ^_^
zamolxes :) 10:39
pmurias ruoso: hi 12:39
clkao win goto 63 12:44
pugs_svn r21901 | lwall++ | [STD] various changes in preparation for inlining p5 regex optimizations 16:39
davidm123 what's the status of pod6? who uses it? it doesn't look like the parrot docs use it. 17:36
pugs_svn r21902 | Auzon++ | [gsoc_spectest] moved sub_named_params.t content to S06-signature/named-parameters.t. everything passes; now to add more tests 17:42
[particle] davidm123: i've started a parser for pod6 in parrot's repo
but mostly, it's not used yet
davidm123 i looked at pod6 about a year ago, and it was most not used yet either ;) 17:43
Auzon I'm pretty sure that the test suite uses Pod6.
[particle] when damian submitted his synopsis draft for review, there were some critical comments about it 17:44
i believe that led folks not to move forward towards implementing it 17:45
i'd like to break that logjam and get things moving again
so i started the parser 17:46
but i'm lacking tuits as of late
davidm123 i tend to like incremental changes, e.g. fix the sigils in perl, make lists more terse and fix other annoyances in pod
davidm123 is there some latest spec for kwid? 19:17
StephenPollei in svn.pugscode.org/pugs/t/README the link rakudo.org/perl6/index.cgi?smart_linking is dead 20:16
s1n are there any good guides out there to understanding PIR code? i want to start hackin on rakudo (as well as the test suite) but i'm very unfamiliar with it's syntax and structure 22:16
pmurias (wired connection from home)++ 22:26
cognominal_ sln: you should start by reading the pods in the docs/ folder 22:36
then in docs/immc/ folder
finally docs/pdds/pdd19_pir.pod 22:37
reading existing code helps too. 22:38
s1n cognominal_: thanks, i'll start there
i'd really like to find some low key, low priority bugs or work to do to get used to it, if you know of any... 22:39