Re: "::" in namespaces

2008-11-04 Thread Chris Dolan
Replying to myself: I think the flaw is in my use of "PDF::Grammar::literal_string" as a method pointer. This worked fine when it was "PDF__Grammar::literal_string", but now the following PIR: get_hll_global $P108, ["PDF";"Grammar"], "literal_string" is returning undef. The answer appear

"::" in namespaces

2008-11-04 Thread Chris Dolan
Thanks to Jonathan for working on the :: bug. I'm still having problems, however. The code below worked before I switched all of my "__" class separators to "::". I'm not sure how to tell whether it's failing to find my .pm (I moved the .pm from lib/ PDF__Grammar__Actions.pm to lib/PDF/Gr

[svn:parrot-pdd] r32356 - in trunk: . compilers/imcc docs/book docs/imcc docs/pdds editor

2008-11-04 Thread coke
Author: coke Date: Tue Nov 4 17:46:38 2008 New Revision: 32356 Modified: trunk/docs/pdds/pdd19_pir.pod Changes in other areas also in this revision: Modified: trunk/DEPRECATED.pod trunk/compilers/imcc/imc.h trunk/compilers/imcc/imcc.l trunk/compilers/imcc/imcc.y trunk/compilers

Re: [perl #57438] [DEPRECATED] [PDD19] .pragma n_operators

2008-11-04 Thread Klaas-Jan Stol
I'd say kill it, and if we ever want to introduce new pragmas into PIR, we reintroduce. This way, .pragma keyword is not recognized without a reason. (recently I've become a great fan of being able to override commandline options with directives in the file processed; .pragma directive would be goo

[svn:perl6-synopsis] r14599 - doc/trunk/design/syn

2008-11-04 Thread larry
Author: larry Date: Tue Nov 4 15:14:32 2008 New Revision: 14599 Modified: doc/trunk/design/syn/S02.pod Log: Define () as the Nil type Modified: doc/trunk/design/syn/S02.pod == --- doc/trunk/design/syn/S02.pod

Re: [perl #60176] Rakudo fails on defining classes with core roles

2008-11-04 Thread chromatic
On Tuesday 04 November 2008 09:05:13 [EMAIL PROTECTED] via RT wrote: > On Mon Oct 27 10:55:52 2008, masak wrote: > > Rakudo r32151 can't create classes with roles from the Rakudo-defined > > classes. > > > > $ ./perl6 -e 'role B {}; class A does B {}' # this works > > > > $ perl6 -e 'class A does

[perl #58918] [BUG] Can't use a subdir class twice

2008-11-04 Thread [EMAIL PROTECTED] via RT
On Tue Sep 16 05:36:02 2008, stifynsemons wrote: > In r31096, use allows a program to use module A and module B, and allows > module B to use module A, when module A defines a method as long as all > three files are in the same directory. However, when you try and put module > A and module B in th

[perl #57438] [DEPRECATED] [PDD19] .pragma n_operators

2008-11-04 Thread Will Coleda via RT
On Wed Jul 30 13:06:06 2008, coke wrote: > From PDD19: > > =item .pragma n_operators [deprecated] > > This appears to be the only .pragma; should we leave a placeholder or just remove .pragma entirely when we remove this particular one? -- Will "Coke" Coleda

Re: [perl #60178] Commit r32189 breaks Parrot on Mac OS X 10.5.4

2008-11-04 Thread chromatic
On Monday 27 October 2008 11:41:22 Carl Mäsak wrote: > I'm running Mac OS X 10.5.4, and can't compile Parrot >r32189. I > managed to compile the latest revision (r32196), but only after > "updating" src/multidispatch.c down to r32188. > > The make output for the failing builds is long and not evi

Re: [perl #59880] DOD crash in r31926, t/op/bitwise.t #27 on linux/x86_64

2008-11-04 Thread chromatic
On Monday 20 October 2008 10:25:06 Mark Glines wrote: > chromatic wrote: > > 2) What's setting an invalid pointer-to-a-PMC here? > > This question is answered at the end of the following dump. (This is > one of the things I nopasted during our IRC discussion last week, thanks > for your guidance

.perl and other methods on Junctions?

2008-11-04 Thread Patrick R. Michaud
Consider the code: my $x = 3 | 'foo'; my $y = $x.perl; Does $y end up as a junction of strings or as a single string? Asking more directly, does .perl autothread over a Junction? If .perl does not autothread, then is there some way of knowing which methods autothread and which do not?

Re: [perl #60332] src/exceptions.c: '_CONST_STRING_' undeclared

2008-11-04 Thread Nicholas Clark
On Tue, Nov 04, 2008 at 11:23:54AM -0700, chromatic wrote: > On Tuesday 04 November 2008 03:30:16 HG wrote: > >     ccversion='', gccversion='2.96 2731 (Red Hat Linux 7.2 > > 2.96-118.7.2)' > > Hm, I'm not sure it's worth our time to work around bugs in an eight year old > GCC (and RH 7.2 is

Re: [perl #60332] src/exceptions.c: '_CONST_STRING_' undeclared

2008-11-04 Thread chromatic
On Tuesday 04 November 2008 03:30:16 HG wrote: > Build errors with parrot-0.8.0 :- > src/exceptions.c > src/exceptions.c: In function `Parrot_ex_build_exception': > src/exceptions.c:74: `_CONST_STRING_74' undeclared (first use in this > function) src/exceptions.c:74: (Each undeclared identifier is

[perl #60176] Rakudo fails on defining classes with core roles

2008-11-04 Thread [EMAIL PROTECTED] via RT
On Mon Oct 27 10:55:52 2008, masak wrote: > Rakudo r32151 can't create classes with roles from the Rakudo-defined > classes. > > $ ./perl6 -e 'role B {}; class A does B {}' # this works > > $ perl6 -e 'class A does Int {}' # this doesn't > Method 'methods' not found > [...] > > Now, Int is a cla

Re: assign to Scalar with hash

2008-11-04 Thread Moritz Lenz
Илья wrote: > Rakudo> my $i = { a => 1 }; $i = $i.keys; > Odd number of elements found where hash expected. It's a bug, and already reported: http://rt.perl.org/rt3/Ticket/Display.html?id=59382 "[BUG] Scalars never give up their container type" > Rakudo> my $a = {a => 1}; my $b = {b => 1}; $a = $

[perl #59928] Calling methods in many-jointed classes doesn't work

2008-11-04 Thread [EMAIL PROTECTED] via RT
On Thu Oct 16 10:22:06 2008, masak wrote: > Moritz (>), Carl (>>): > >> Rakudo r31994 can call methods on classes without :: in them, but not > >> on classes having them. > >> > >> $ perl6 -e 'class A { method foo { say "OH HAI" } }; A.new.foo' > >> OH HAI > >> > >> $ perl6 -e 'class A::B { method

Re: [perl #60330] [BUG][PATCH] if statement should explicitely call 'prefix:?'

2008-11-04 Thread Patrick R. Michaud
On Mon, Nov 03, 2008 at 06:07:54PM -0800, Vasily Chekalkin via RT wrote: > Sorry, this patch broke Rakudo. Shouldn't be applied. It's also the wrong approach. The boolean tests (including prefix: ) all use the get_bool vtable function in order to check boolean-ness. What's missing is the corre

[perl #60332] src/exceptions.c: '_CONST_STRING_' undeclared

2008-11-04 Thread via RT
# New Ticket Created by HG # Please include the string: [perl #60332] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=60332 > Build errors with parrot-0.8.0 :- % gmake Compiling with: xx.c cc -I./include -DNO_HASH_SEED -pip

[perl #57446] Enums of only one element don't work i rakudo

2008-11-04 Thread [EMAIL PROTECTED] via RT
On Sat Aug 02 13:02:39 2008, pmichaud wrote: > On Wed, Jul 30, 2008 at 10:46:27PM -0700, Carl Mäsak wrote: > > $ svn info | grep Revi > > Revision: 29902 > > > > $ ./perl6 -e 'enum Weekday;' # works > > $ ./perl6 -e 'enum Weekday;' # doesn't > > get_pmc_keyed() not implemented in class 'Perl6Str'

[perl #60330] [BUG][PATCH] if statement should explicitely call 'prefix:?'

2008-11-04 Thread via RT
# New Ticket Created by Vasily Chekalkin # Please include the string: [perl #60330] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=60330 > Hello. During investigation of problems with #60168 if found that "if" doensn't ca

[perl #60008] @array ~~ / regexp / do not work properly, look like array stratification there

2008-11-04 Thread [EMAIL PROTECTED] via RT
On Mon Oct 20 06:11:17 2008, ihrd wrote: > my @a = ('a', 'b' ); > say @a ~~ / 'b' /?? ':)' !! ':('; # :) > say @a ~~ / ^ 'b' /?? ':)' !! ':('; # :( > say @a ~~ / ^ 'a' /?? ':)' !! ':('; # :) > say @a ~~ / ^ 'a' $ / ?? ':)' !! ':('; # :( > They're all smiling as of r32328. Spas

assign to Scalar with hash

2008-11-04 Thread Илья
Hi there, Rakudo> my $i = { a => 1 }; $i = $i.keys; Odd number of elements found where hash expected. Rakudo> my $a = {a => 1}; my $b = {b => 1}; $a = $b; Cannot morph a Perl6Scalar. I missed something or that`s bugs? Ilya

[perl #60330] [BUG][PATCH] if statement should explicitely call 'prefix:?'

2008-11-04 Thread Vasily Chekalkin via RT
Sorry, this patch broke Rakudo. Shouldn't be applied. -- Bacek

[perl #60160] [BUG] [PATCH] recursive "use" causes infinite loop.

2008-11-04 Thread [EMAIL PROTECTED] via RT
On Sun Oct 26 19:55:51 2008, [EMAIL PROTECTED] wrote: > The following simple test involves two .pm files that depend on each > other. In revision 32120, this causes an infinite loop. The > attached trivial patch prevents the loop by making Rakudo mark the > modules as loaded before parsing

[perl #59104] export sub from used module is broken if make pir

2008-11-04 Thread [EMAIL PROTECTED] via RT
On Sat Sep 20 01:25:09 2008, moritz wrote: > On Fri Sep 19 22:45:29 2008, ihrd wrote: > > Hi, > > I compile parrot r31282 and November do not export sub from modules on > > pir (in r31264 the same situation): > > I suspect that could be related to > > r31226 | jonathan | 2008-09-18 12:46:58 +0200