The topic for #perl6 is: pugscode.org/ planetsix.perl.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 TimToady on 25 November 2008.
Hinrik perl6: sub foo { 1 }; foo.perl 01:02
p6eval elf 24354: RESULT["1"␤]
..pugs, rakudo 33872: RESULT["1"]
Hinrik perl6: sub foo { 1 }; &foo.perl 01:03
p6eval elf 24354: OUTPUT[/home/evalenv/pugs/misc/elf/elf_f_src/STD_red/match.rb:141:in `block in to_dump0': undefined method `to_dump0' for true:TrueClass (NoMethodError)␤ from /home/evalenv/pugs/misc/elf/elf_f_src/STD_red/match.rb:140:in `each'␤ from
../home/evalenv/pugs/misc/elf/elf_f_src/STD_red/match.r...
..pugs: RESULT["\\sub :(\@_) \"\$_\" := \"Scalar\" #<Scalar:0xb7a69459>\n \"\@_\" := \"Array\" #<Array:0xb7a69461>\n \"\&?ROUTINE\" := \"Sub\" #<Sub:0xb7184961>\n \"\&?BLOCK\" := \"Sub\" #<Sub:0xb7184961> \{\"\&foo\" := \"Sub\" #<Sub:0xb6568611>, \"\$_\" := \"Scalar\"...
..rakudo 33872: RESULT["\{ ... }"]
Hinrik perl6: my $baz = sub foo { 1 }; &$baz 01:05
p6eval pugs: OUTPUT[*** ␤ Unexpected "$baz"␤ expecting "=", subroutine parameters, trait, block, context, ":" or "("␤ at /tmp/BzXM7xyw9Z line 1, column 4␤]
..elf 24354: OUTPUT[/home/evalenv/pugs/misc/elf/elf_f_src/STD_red/match.rb:141:in `block in to_dump0': undefined method `to_dump0' for true:TrueClass (NoMethodError)␤ from /home/evalenv/pugs/misc/elf/elf_f_src/STD_red/match.rb:140:in `each'␤ from
../home/evalenv/pugs/misc/elf/elf_f_src/STD_red/match.r...
..rakudo 33872: OUTPUT[Syntax error at line 1, near "&$baz"␤␤current instr.: 'parrot;PGE;Util;die' pc 129 (runtime/parrot/library/PGE/Util.pir:83)␤]
Hinrik perl6: my $baz = sub foo { 1 }; & $baz
p6eval rakudo 33872: OUTPUT[Use of contextualizer & not implemented. at line 1, near ""␤␤current instr.: 'parrot;PGE;Util;die' pc 129 (runtime/parrot/library/PGE/Util.pir:83)␤]
..elf 24354: OUTPUT[Parse error in: /tmp/AIrCcXRITO␤panic at line 1 column 25 (pos 25): Can't understand next input--giving up␤WHERE: my $baz = sub foo { 1 }; & $baz␤WHERE: /\<-- HERE␤ STD_red/prelude.rb:99:in `panic'␤ STD_red/std.rb:76:in `scan_unitstopper'␤
..STD_red/std.r...
..pugs: OUTPUT[*** ␤ Unexpected "$baz"␤ expecting "=", subroutine parameters, trait, block, context, ":" or "("␤ at /tmp/VBdHM7iEMb line 1, column 4␤]
Hinrik perl6: (1&(2&3)).perl 01:31
p6eval pugs: RESULT["(1 \& 2 \& 3)"]
..elf 24354: RESULT["0"␤]
..rakudo 33872: RESULT["all(1, all(2, 3))"]
Hinrik how does it not that &() there is not a contextualizer? 01:32
Hinrik what's that "W" in t/S03-operators/assign.t ? 01:41
bah, nm
didn't notice the "sub W ..."
TimToady Hinrik: the parser knows when it's expecting a term vs an infix, so it's not confused about & 01:42
lambdabot TimToady: You have 4 new messages. '/msg lambdabot @messages' to read them.
Hinrik ah, of course 02:22
pugs_svn r24355 | hinrik++ | [util/perl6.vim] a bunch of small fixes related to angles, comments, reduce identifiers, hyperoperators, etc 02:43
meppl good night 03:32
Hinrik perl6: sub foo'sub { 1 }.perl 05:23
p6eval pugs: OUTPUT[*** ␤ Unexpected "'"␤ expecting "::", "handles", "is", bare trait, subroutine parameters, trait or block␤ at /tmp/S5Gg4HnQxM line 1, column 8␤]
..rakudo 33873: OUTPUT[Statement not terminated properly at line 1, near ".perl"␤␤current instr.: 'parrot;PGE;Util;die' pc 129 (runtime/parrot/library/PGE/Util.pir:83)␤]
..elf 24355: OUTPUT[Parse error in: /tmp/xHfgNJOQih␤panic at line 1 column 0 (pos 0): Can't understand next input--giving up␤WHERE: sub foo'sub { 1 }.perl␤WHERE:/\<-- HERE␤ STD_red/prelude.rb:99:in `panic'␤ STD_red/std.rb:76:in `scan_unitstopper'␤ STD_red/std.rb:224:in `comp_unit'␤
..STD_red/std.r...
Hinrik perl6: sub foo-sub { 1 }.perl
p6eval rakudo 33873: OUTPUT[Statement not terminated properly at line 1, near ".perl"␤␤current instr.: 'parrot;PGE;Util;die' pc 129 (runtime/parrot/library/PGE/Util.pir:83)␤]
..pugs: OUTPUT[*** ␤ Unexpected "-"␤ expecting "::", "handles", "is", bare trait, subroutine parameters, trait or block␤ at /tmp/ABQmHj5ZU4 line 1, column 8␤]
..elf 24355: OUTPUT[Parse error in: /tmp/iN4KMQABCs␤panic at line 1 column 17 (pos 17): Statement not terminated properly␤WHERE: sub foo-sub { 1 }.perl␤WHERE: /\<-- HERE␤ STD_red/prelude.rb:99:in `panic'␤ STD_red/std.rb:355:in `eat_terminator'␤ STD_red/std.rb:269:in `block in
..stat...
Hinrik perl6: class Foo { method foo-bar { 1 } } 05:25
p6eval elf 24355: OUTPUT[Undefined subroutine &GLOBAL::foo called at (eval 121) line 5.␤ at ./elf_f line 3861␤]
..pugs: OUTPUT[*** ␤ Unexpected "-"␤ expecting "::", "handles", "is", bare trait, subroutine parameters, trait or block␤ at /tmp/446pLKV6YT line 1, column 23␤]
..rakudo 33873: RESULT[{ ... }]
Hinrik perl6: class Foo { method foo'bar { 1 } }
p6eval pugs: OUTPUT[*** ␤ Unexpected "'"␤ expecting "::", "handles", "is", bare trait, subroutine parameters, trait or block␤ at /tmp/Ic0ATmYFA9 line 1, column 23␤]
..elf 24355: OUTPUT[Parse error in: /tmp/unOjkJtzxZ␤panic at line 1 column 12 (pos 12): Missing right brace␤WHERE: class Foo { method foo'bar { 1 } }␤WHERE: /\<-- HERE␤ STD_red/prelude.rb:99:in `panic'␤ STD_red/std.rb:255:in `_block_rest'␤ STD_red/std.rb:242:in `block in block'␤
..STD_r...
..rakudo 33873: RESULT[{ ... }]
mncharity I note in passing that elfblue is ok with both. ;) 05:35
pugs_svn r24356 | putter++ | [STD_blue] Enabled parse caching. Pass a few rx_on_re re tests. 06:29
Hinrik perl6: say NaN.perl 07:05
p6eval rakudo 33874: OUTPUT[undef␤]
..pugs: OUTPUT[NaN␤]
..elf 24356: OUTPUT[Can't locate object method "perl" via package "NaN" (perhaps you forgot to load "NaN"?) at (eval 117) line 3.␤ at ./elf_f line 3861␤]
Hinrik perl6: say -NaN.perl
p6eval elf 24356: OUTPUT["\-NaN"␤]
..pugs: OUTPUT[NaN␤]
..rakudo 33874: OUTPUT[-0␤]
pugs_svn r24357 | hinrik++ | [util/perl6.vim] match all bare identifiers, match proper Pod identifiers, a few other small fixes 09:32
pugs_svn r24358 | hinrik++ | [t/spec] changed 'use Perl' test to match S11 syntax 09:36
r24359 | hinrik++ | [util/perl6.vim] add the GLOBAL package 09:42
pugs_svn r24360 | hinrik++ | [util/perl6.vim] fix typo 10:01
theorbtwo dev.perl.org/perl6/doc/design/syn/S03.html says "A negated smart match is spelled !~~", but doesn't specify it at the table at the top. Doc bug? 11:47
ihrd hi 13:24
question about .kv
rakudo: my @a = {a => 1}, {b =>2}; my %h = foo => @a; say %h.kv.perl;
p6eval rakudo 33880: OUTPUT[["foo", {"a" => 1}, {"b" => 2}]␤]
ihrd rakudo: say ({ foo => [{a=>1}, {b=>1}]}).perl;
p6eval rakudo 33880: OUTPUT[{"foo" => [{"a" => 1}, {"b" => 1}]}␤]
ihrd I feel result should be the same 13:25
I miss something?
ihrd any body home? 13:41
jnthn ihOn the first one you did .kv.perl, on the second just .perl 14:04
oops
I meant ihrd
...who left. Fail. 14:05
pmurias ruoso: ^!private_storage does what ^!instance_storage should right? 14:26
cognominal in objc 2.0, protocols can specify that a method is optional using @optional, is there anything equivalent in Perl 6 roles? is there a benefit to have something similar? 14:52
jnthn cognominal: I think if you write a method foo { ... } in a role it's an error not to implement it. 15:24
What's the use case in ObjC 2.0 for this?
pmurias all methods to mentioned in a given role are optional 15:31
s/mentioned/not mentioned/ 15:33
jnthn Sure, but it seems here you can specify and interface contract that the implementer may choose to fulfil completely or partially. 15:34
I'm not quite sure I see the point... :-)
s/and/an/
OTOH, I doubt it woulda made it into ObjC if there wasn't a reason or use case of sorts... 15:36
pmurias jnthn: it is something that would otherwise need to be specified by convention 15:43
rakudo_svn r33882 | pmichaud++ | [rakudo]: Adjust grammar to use <?{{...}}> assertion syntax. 15:50
rakudo_svn r33885 | pmichaud++ | [rakudo]: spectest-progress.csv update: 240 files, 5005 passing, 0 failing 16:30
cognominal jnthn, I am learning objc, was seing that... not sure about the utility. I know that if you call with a null pointer an existing method, it's a noop, maybe if you call a missing method maybe that's a noop too. 16:50
jnthn That sounds...dangerous. :-| 16:52
cognominal life is dangerous with dynamic languages 16:58
rakudo_svn r33893 | pmichaud++ | [rakudo]: Reorganize method ordering, other minor cleanups. 17:10
jnthn developers.slashdot.org/article.pl?...14/1523236 # /Perl 6?/ on /. 17:11
pmichaud hmm. the article on Perl 6 says "There will be a standard implementation and a test suite shipped with Perl 6. " 17:22
Looks like the reporter got that one wrong. Either that or there's been a development I'm unaware of. 17:23
azawawi hi 17:23
jnthn Aye, I spotted taht too. 17:24
Suspect confused reporter.
pmichaud probably meant "language standard"
jnthn aye
pmichaud but yes, given Perl's history it'd be easy to assume a "standard implementation". And it's what a lot of people in the community still expect.
azawawi reading...
azawawi what is the best level to set perlcritic to? 17:40
ruoso @tell pmurias yes, private_storage and instance_storage are the same thing... 18:07
lambdabot Consider it noted.
ruoso wonders if TimToady will have some time to answer a few pending issues in p6-l 18:08
s/if/when/
rakudo_svn r33895 | pmichaud++ | [rakudo]: Clean up flattening a fair bit. 18:10
r33895 | pmichaud++ | This removes 15 seconds from "make spectest" on my machine,
r33895 | pmichaud++ | and eliminates the special-case 'isa' checks from !flatten.
moritz_ re
ruoso jnthn, about yada methods in roles, I'm using .yada to realize when that implementation must be substituted by the class' own implementation (or the implementation of some other role), but I'm not doing a specific check to see if all the yada methods are indeed implemented... I think it would be pretty sane to assume that if a non-implemented yada method is never called, the class doesn't really need to implement it 18:16
pugs_svn r24361 | moritz++ | [t] and [t/spec] (two train travels worth of changes): 18:17
r24361 | moritz++ | * move arrays/end.t, assuming_and_mmd.t, value_alias_readonly.t,
r24361 | moritz++ | say-crash.t and anchors.t to spec/
r24361 | moritz++ | * trig.t: these subs are only available after 'use Num :Trig'
r24361 | moritz++ | * s/lives_ok/eval_lives_ok/ for things that happen at compile time
r24361 | moritz++ | * Add a whole bunch of smartlinks
r24361 | moritz++ | * removed unnecessary eval()s
r24361 | moritz++ | * Str.pos is dead, long live
r24361 | moritz++ | * various small cleanups
r24361 | moritz++ | * delete xx-uncategorized/return_in_anonymous_subs.t,
r24361 | moritz++ | which declared itself obsolete
jnthn How can you know it's never called? 18:19
moritz_ [particle]: ping 18:30
ruoso jnthn, if it doesn't break, it was never called
jnthn ruoso: The point is that we can detect the method is missing at compile time. 18:31
ruoso jnthn, but that would require the concept of an Abstract class
jnthn Erm, huh? 18:32
ruoso because you can design a class that is incomplete, waiting for it to be used as a superclass for other classes that will then be incomplete
we would need to add a keyword saying: "this is an incomplete class"
and I do think incomplete classes can be used in what they are complete 18:33
jnthn If a role merely declares methods without defining them, it degenerates to an interface:
Note that, while these methods must become available at class composition time, they might be supplied by any of: another role, the class itself, or some superclass. We know the methods that are coming from the other roles or the class, but we don't necessarily know the complete set of methods supplied by our super classes if they are open or rely on wildcard delegation. However, the class composer is allowed to assume that only currently declared supercl
(From S12)
ruoso hmm
ok...
pugs_svn r24362 | moritz++ | [t/spec] various small improvements.
r24362 | moritz++ | Also deleted S29-hash/isa.t, which is pretty pointless and 50% wrong
jnthn So it needs checking at composition time.
It's not hard to do that, I don't think. 18:34
ruoso I'd be happier with a more relaxed constraint
jnthn I'm happy with it like that.
ruoso maybe we could have it as a control exception
that could be re-defined to be just a warning
or no warning at all
jnthn If we're giving people the ability to write an interface, we should have the default being something that usefully enforces it.
ruoso I rephrase... just make it a control exception that can be caught by a CONTROL block 18:35
jnthn This is a compile time check... 18:36
ruoso meh
jnthn I agree it'd be good to provide a pragma that lets you change this.
But I don't think we need to worry too much about that part now. :-)
ruoso indeed...
ruoso bbiab &
jnthn There's enough to implement without making it harder. ;-) 18:37
cspencer anybody available to field a rakudo question? :) 18:47
pmichaud here.
moritz_ I can try 18:48
cspencer is it possible yet to call a code block that's been passed into a subroutine?
pmichaud sure.
pugs_svn r24363 | azawawi++ | [Syntax::Highlight::Perl6] Text::VimColor support is totally optional now.
r24363 | azawawi++ | [Syntax::Highlight::Perl6] ->vim_html will croak if it is not installed and will
r24363 | azawawi++ | [Syntax::Highlight::Perl6] also provide some advice about life in general ;-)
pmichaud sub foo($code) { $code() }
foo( { say 'hello' } );
cspencer ie) if i do a: myroute({ .say "howdy" }).
how do i get at that from inside the routine?
moritz_ rakudo: sub foo(&x) { x(3); }; foo({ say 2 * $^x })
p6eval rakudo 33895: OUTPUT[6␤]
azawawi rakudo: say 'hello to moritz_'; 18:49
p6eval rakudo 33895: OUTPUT[hello to moritz_␤]
cspencer ah okay, thanks :)
rakudo_svn r33896 | pmichaud++ | [rakudo]: Optimize flattening a bit further. 18:50
r33896 | pmichaud++ | When splicing in a flattened element, we don't need to
r33896 | pmichaud++ | re-flatten the things we just spliced in.
moritz_ azawawi: re submitting perl6.vim to vimorg, I think it's a bit too early yet
azawawi moritz_: anyway im bundling it with my package and making vim_html and Text::VimColor totally optional 18:51
moritz_ azawawi: nice
azawawi moritz_: Text::VimColor failure report is a bit too much to handle ;-)
cspencer i'd been trying with $code->() previously which was failing 18:54
thanks again :)
moritz_ tha's Perl 5 ;-) 18:55
cspencer o 18:57
i've yet to switch that over in my head! :) 18:58
moritz_ it's not easy, most of us confuse the syntaxes from time to time
(including Larry himself ;-) 18:59
rakudo_svn r33897 | moritz++ | [rakudo] add a few files to t/spectest.data, restore alphabetical order, 19:00
r33897 | moritz++ | and add reasons why we don't include other file(s) here
pugs_svn r24364 | moritz++ | [t/spec] fudge 'use Num :Trig' line for rakudo 19:20
moritz_ @tell [particle] I've glanced over S19 and I think there should be an --encoding option to specify the encoding of the source file 19:30
lambdabot Consider it noted.
pmichaud wasn't there supposed to be some way to put that in the source itself? 19:35
moritz_ pmichaud: maybe, but out-of-band signalling should be allowed nonetheless 19:36
pugs_svn r24365 | azawawi++ | [Syntax::Highlight::Perl6] More documentation updates
moritz_ pmichaud: because if that information is only in the source file, the compiler first has to guess to even parse the encoding specification
which might be non-trivial for ASCII incompatible encodings 19:37
pmichaud it would be at the beginning of the source file
I think the spec (or apocalypses) said somewhere that source is assumed to be utf8 until declared otherwise.
obviously that declaration would need to occur prior to any non-utf8 source.
once the declaration is spotted, transcode the rest of the source according to the declaration, and then continue parsing from there. 19:38
azawawi moritz_: can i ask u for a favour? ;-)
moritz_ azawawi: asking is cheap ;-)
azawawi moritz_: 'sudo cpan Perl::Critic'
moritz_: What's the best way to get Syntax::Highlight::Perl6 into Bundle::Perl6 ? 19:39
moritz_ azawawi: contact the author, I think 19:40
azawawi: perlcritic installed 19:41
azawawi moritz_: thx a lot 19:42
pugs_svn r24366 | moritz++ | [t/spec] add tests for sort, both with unary closure and to ensure that sort 19:43
r24366 | moritz++ | is stable
azawawi starts accepting --harsh perlcritic-s about his module...
moritz_ you must be a masochist ;-) 19:44
azawawi lol 19:47
azawawi sent a request to be added into Bundle::Perl6... 19:48
Hinrik moritz_: S26 has something to say about that regarding =encoding
EnQLey_ Quand tu vas r􏿽xE9ussi 􏿽xE0 chier des perls, ils vont tous dire que t'es devenu une huitre. 19:52
moritz_ Hinrik: I'll take a look, thanks 19:54
rakudo_svn r33898 | pmichaud++ | [rakudo]: Fix bare return value in item and list context (RT #58770) 20:00
pugs_svn r24367 | azawawi++ | [Syntax::Highlight::Perl6] Fixed 01-vim.t to work 20:06
r24367 | azawawi++ | [Syntax::Highlight::Perl6] Passed perlcritic -5 (--gentle)
alester Is Nil different from undef? 20:10
"Bare return in subs now return Nil, which dtrt" 20:11
masak alester: yes, but Nil will usually behave as you'd expect undef to do.
Hinrik S02 says Nil is an "Empty list viewed as an item"
alester Nil is in addition to undef, not a replacement?
masak alester: correct. 20:12
alester SO what's the additional value of it?
masak alester: undef is more of a property of objects than an object in itself.
moritz_ azawawi: Nil is something that's undef in scalar context, and empty list in list context
erm, I meant alester 20:13
alester: it's needed to make bare return; work roughly the same as in perl 5
alester goes reading dev.perl.org/perl6/doc/design/syn/S02.html
ok, so Object, Nil, Whatever and Failure are just typed versions of the undef-in-Perl-5 semantics. 20:14
masak alester: that's a nice way to summarize it, yes. 20:15
moritz_ or as TimToady usually puts it, "interesting values of undef" ;-)
alester or as Tufte puts it: To clarify, add detail. 20:16
Hinrik alester: btw, some synopses aren't linked to on perl.org but are available here: perlcabal.org/syn/ 20:17
alester that's tragic. 20:18
pugs_svn r24368 | moritz++ | [S29] small clarification of @list.end
Hinrik and apparently some of the ones on perl.org are just empty placeholders, like S29 20:19
pugs_svn r24369 | moritz++ | [t/spec] fudge test that's likely out of date 20:33
rakudo_svn r33899 | moritz++ | [rakudo] export @list.end as a sub 20:40
r33900 | moritz++ | [rakudo] add test for @list.end to spectest.data
pugs_svn r24370 | moritz++ | [t/spec] unfudge passing tests in return.t, pmichaud++ 20:41
pugs_svn r24371 | moritz++ | [t/spec] fudge a test that's likely wrong 20:49
pugs_svn r24372 | azawawi++ | [Syntax::Highlight::Perl6] survived perlcritic -3 (--harsh) with 2 unsolved... 21:31
r24372 | azawawi++ | [Syntax::Highlight::Perl6] Added Readonly dependency
rakudo_svn r33903 | pmichaud++ | [rakudo]: Eliminate use of %!properties attribute in favor of getprop/setprop. 22:30
pugs_svn r24373 | moritz++ | [t/spec] unTODO another test in return.t 22:41
pugs_svn r24374 | azawawi++ | [Syntax::Highlight::Perl6] Only 35 warnings in perlcritic --brutal or -1 22:42
pugs_svn r24375 | azawawi++ | [Syntax::Highlight::Perl6] svn propset svn:keywords "Date Author Revision Id" 22:46
r24376 | azawawi++ | [Syntax::Highlight::Perl6] only svn propset svn:keywords "Id"... 22:47
r24377 | moritz++ | [t/spec] clean up passing TODO tests in assign.t 22:48
azawawi moritz_: perlcritic -1 is really annoying ;-) it should be called --annoying or --silly
moritz_ azawawi: then don't run it 22:49
azawawi moritz_: you never learn until you try ;-)
azawawi moritz_: e.g. POD section warnings are pretty much useless... 22:51
moritz_: "configuration and environment", that's cobol ;-)
moritz_ finds much of perlcritic pretty useless
azawawi i thought -1 would check for more possible errors, not syntactic preferences... 22:52
moritz_ www.perlmonks.org/?node_id=655882 22:53
Hinrik perlcritic -1 is pretty anal 23:00
moritz_ but more anal than pretty ;-)
Hinrik I use -3 minus a few annoying policies (set in .perlcriticrc) 23:01
pugs_svn r24378 | azawawi++ | [Syntax::Highlight::Perl6] Updated perl6.vim to r24360 23:13
r24378 | azawawi++ | [Syntax::Highlight::Perl6] Added missing t/01-vim.t to MANIFEST
r24378 | azawawi++ | [Syntax::Highlight::Perl6] Bumped to version 0.025... Releasing to CPAN.
r24379 | moritz++ | [t/spec] add test for overriding <.ws> rules 23:16
r24380 | moritz++ | [t/spec] svn props 23:17
azawawi not bad, i learnt a lot from building this cpan module ;-) 23:18
azawawi wonders why cpan does not use .tar.bz2 23:19
moritz_ azawawi: it doesn't gain very much, but is so much slower
Hinrik perl6: my $var = [1,2,3]; @@$var 23:20
azawawi moritz_: yeah but makes sense in terms of storage space...
p6eval pugs: OUTPUT[*** Unknown syntactic construct: Syn "@@{}" [Var "$var"]␤ at /tmp/jQz0eT10rG line 1, column 20 - line 2, column 1␤]
..rakudo 33904: OUTPUT[Syntax error at line 1, near "@@$var"␤␤current instr.: 'parrot;PGE;Util;die' pc 129 (runtime/parrot/library/PGE/Util.pir:83)␤]
..elf 24380: OUTPUT[Not a SCALAR reference at (eval 115) line 4.␤ at ./elf_f line 3861␤]
Hinrik perl6: my $var = sub { 1 }; &$var
p6eval elf 24380: OUTPUT[/home/evalenv/pugs/misc/elf/elf_f_src/STD_red/match.rb:141:in `block in to_dump0': undefined method `to_dump0' for true:TrueClass (NoMethodError)␤ from /home/evalenv/pugs/misc/elf/elf_f_src/STD_red/match.rb:140:in `each'␤ from
../home/evalenv/pugs/misc/elf/elf_f_src/STD_red/match.r...
..pugs: RESULT[sub :(@_) "$_" := "Scalar" #<Scalar:0xb7a60afd>␤ "@_" := "Array" #<Array:0xb7a60af5>␤ "&?ROUTINE" := "Sub" #<Sub:0xb7184961>␤ "&?BLOCK" := "Sub" #<Sub:0xb7184961> {, "$var" := "Scalar" #<Scalar:0xb7a69141>, "$_" := "Scalar" #<Scalar:0xb7a6fbe5>␤ ...
..rakudo 33904: OUTPUT[Syntax error at line 1, near "&$var"␤␤current instr.: 'parrot;PGE;Util;die' pc 129 (runtime/parrot/library/PGE/Util.pir:83)␤]
moritz_ Hinrik: &$var doesn't make sense anymore 23:21
Hinrik: calling subs happens as $var() or $var.()
Hinrik ok
pugs_svn r24381 | moritz++ | [t/spec] test for non-capturing of the right rules 23:22
azawawi moritz_: 0.026 release is going to add a bin/syntaxhighlightp6 (the good old STD_syntax_highlight) 23:23
azawawi moritz_: or bin/shp6, bin/colorp6, bin/p6_in_color, ... etc ;-) 23:24
moritz_ I'm thoroughly confused: why does this fail: nopaste.snit.ch/14946 but t/spec/S05-grammar/ws.t pass? 23:25
Hinrik I think the convention is to keep it in script/ (in the capn package, that is) if it's platform-independent
cpan*
azawawi Hinrik: that's what puzzles me, some modules put it in root, some in bin/, some in same last package name; so no std so far there... 23:27
rakudo_svn r33905 | moritz++ | [rakudo] add tests for overridable <.ws> rules to spectest.data 23:30
azawawi good night guys... oops it is 1:30am here... ;-)
moritz_ good night 23:31
jnthn moritz_: Does changing your failing example from rule b {x y}; 23:32
to have 'x' 'y'
Make a difference?
That's the only difference that stands out.
If it doesn't make a difference, it's...odd.
Hinrik heh, only 3 (out of >500) syntax files bundled with vim are longer than perl6.vim 23:33
azawawi is dreaming about a faster 'lex'-free, 'log'-free STD.pm and a working Text::VimColor on all platforms ;-) & 23:34
that's Perl 6 in Action ;-)
azawawi sleep &