Multiple Return Values - details fleshed out

2008-08-09 Thread John M. Dlugosz
I wrote to clarify and extrapolate from what is written in the Synopses. --John

Quick questions on classes re S12

2008-08-09 Thread John M. Dlugosz
1) How do you declare a private method? I see how you call one, but not how to define one. 1b) Is the intent that $!foo without an explicit invocant refers to self, as opposed to $.bar or .bar which refers to $_ ? 2) re: has $brain; # also declares $!brain; Does that mean that $brain by

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

2008-08-09 Thread Aristotle Pagaltzis
* Larry Wall <[EMAIL PROTECTED]> [2008-08-08 19:45]: > q'foo is now a valid identifier. Qa tlho', Larry. Regards, -- Aristotle Pagaltzis //

Re: Quick question: (...) vs [...]

2008-08-09 Thread Audrey Tang
John M. Dlugosz 提到: What is the difference between (1,2,3) and [1,2,3] ? One is a List and one is an Array; you cannot push into a list, but you can into an array. my @a := (1,2,3); my @b := [1,2,3]; @a.push(4); # fails @b.push(4); # works Cheers, Audrey

Windows Symbol Export/Import

2008-08-09 Thread Ron Blaschke
Currently, PARROT_API is declared similar to this. #if defined(PARROT_IN_EXTENSION) #define PARROT_API __declspec(dllimport) #else #define PARROT_API __declspec(dllexport) #endif That is, only import if we're in an extension, otherwise export. IMHO, this isn't quite right. Export and import s

Re: Quick question: (...) vs [...]

2008-08-09 Thread Mark J. Reed
On Sat, Aug 9, 2008 at 7:01 AM, Audrey Tang <[EMAIL PROTECTED]> wrote: > One is a List and one is an Array; you cannot push into a list, but you can > into an array. > > my @a := (1,2,3); > my @b := [1,2,3]; > > @a.push(4); # fails > @b.push(4); # works But note that the first push fails because

[perl #53976] [PATCH] Remove tools/dev/ops_renum.mak

2008-08-09 Thread James Keenan via RT
On Wed Jul 02 09:17:44 2008, [EMAIL PROTECTED] wrote: > > > What purpose remains, then, for either tools/dev/ops_renum.mak or my > alternative, tools/dev/opsrenumber.pl? Is such a program only intended > to provide a number for newly added opcodes? > > kid51 We haven't had any response to this

[perl #41508] [BUG] Configure losing flags...

2008-08-09 Thread James Keenan via RT
Last weekend tetragon and I had considerable discussion on #parrot about this problem. My diagnosis was that we should not be handling command-line options at all in 'hints' files; they should be handled in inter::progs. The patch attached removes options handling from config/init/hints/darwin.pm

Re: Multiple Return Values - details fleshed out

2008-08-09 Thread Jon Lang
John M. Dlugosz wrote: > I wrote to clarify and > extrapolate from what is written in the Synopses. A few comments: 1. I was under the impression that identifiers couldn't end with - or '. 2. While list context won't work with named return values, "h

Re: Quick questions on classes re S12

2008-08-09 Thread Jonathan Worthington
Hi, Answers as I understand things... John M. Dlugosz wrote: 1) How do you declare a private method? I see how you call one, but not how to define one. my method foo { ... } 1b) Is the intent that $!foo without an explicit invocant refers to self, as opposed to $.bar or .bar which refers to

Re: [perl #41508] [BUG] Configure losing flags...

2008-08-09 Thread Andy Dougherty
On Sat, 9 Aug 2008, James Keenan via RT wrote: > Last weekend tetragon and I had considerable discussion on #parrot about > this problem. My diagnosis was that we should not be handling > command-line options at all in 'hints' files; they should be handled in > inter::progs. I didn't see any of

Re: [perl #53976] [PATCH] Remove tools/dev/ops_renum.mak

2008-08-09 Thread chromatic
On Saturday 09 August 2008 06:33:46 James Keenan via RT wrote: > > What purpose remains, then, for either tools/dev/ops_renum.mak or my > > alternative, tools/dev/opsrenumber.pl? Is such a program only intended > > to provide a number for newly added opcodes? > We haven't had any response to thi

Re: [perl #56996] [TODO] remove non FHS-compliant searchpaths

2008-08-09 Thread Reini Urban
Reini Urban schrieb: Reini Urban schrieb: Geoffrey Broadwell via RT schrieb: On Sun, 2008-07-27 at 13:13 +0200, Reini Urban wrote: +stat $I0, conf_file, 0 +if $I0 goto conf ++# If installed into /usr/lib/parrot, not /usr/runtime/parrot +# This logic has to be reversed when

Re: [perl #57740] Dotty method calls confuse rakudo's MMD mechanism

2008-08-09 Thread chromatic
On Thursday 07 August 2008 22:45:36 Carl Mäsak wrote: > The segfault only occurs when running ./perl6, not when running > ../../parrot perl6.pbc. That's because all fakecutables set the flag which tells Parrot to destroy everything at shutdown. If you add the --leak-test or --destroy-at-end fla

Re: [svn:parrot] r30144 - trunk

2008-08-09 Thread chromatic
On Saturday 09 August 2008 10:30:30 [EMAIL PROTECTED] wrote: > Log: > MANIFEST and SKIP were not updated before a recent commit. > > Modified: trunk/MANIFEST > --- trunk/MANIFEST(original) > +++ trunk/MANIFESTSat Aug 9 10:30:30 2008 > @@ -2820,16 +2821,6 @@ > lib/SmartLink.pm

Re: [svn:parrot] r30144 - trunk

2008-08-09 Thread Kevin Tew
I think tools/dev/mk_manifest_and_skip.pl ignores the ports directory Kevin chromatic wrote: On Saturday 09 August 2008 10:30:30 [EMAIL PROTECTED] wrote: Log: MANIFEST and SKIP were not updated before a recent commit. Modified: trunk/MANIFEST --- trunk/MANIFEST (original) +++ trunk/

Re: List of captures, why?

2008-08-09 Thread Brandon S. Allbery KF8NH
On 2008 Aug 8, at 23:12, John M. Dlugosz wrote: Brandon S. Allbery KF8NH allbery-at-ece.cmu.edu |Perl 6| wrote: On 2008 Aug 8, at 23:06, John M. Dlugosz wrote: Why is 3;3;3 a list of captures rather than a list of lists? IIRC it has to do with providing enough information for slices and/ or

Re: Quick question: (...) vs [...]

2008-08-09 Thread Patrick R. Michaud
On Fri, Aug 08, 2008 at 11:08:51PM -0400, Brandon S. Allbery KF8NH wrote: > > On 2008 Aug 8, at 22:53, John M. Dlugosz wrote: > >> What is the difference between (1,2,3) and [1,2,3] ? > > IIRC one is a list, the other a reference to a list --- which in perl6 > will be hidden for the most part. so

Re: [perl #57536] [BUG] Segfault in Parrot_memalign during shootout test 19 on 64-bit Intel OS X build

2008-08-09 Thread chromatic
On Wednesday 06 August 2008 22:42:52 Seneca Cunningham via RT wrote: > I've stopped the crashes that appear related to this on my box with the > attached patch. config/gen/platform/darwin/memalign.c has a few unsigned > variables that were being implicitly handled as (32-bit) ints, those > variabl

[perl #53976] [PATCH] Remove tools/dev/ops_renum.mak

2008-08-09 Thread James Keenan via RT
On Sat Aug 09 10:31:37 2008, [EMAIL PROTECTED] wrote: > On Saturday 09 August 2008 06:33:46 James Keenan via RT wrote: > > > > What purpose remains, then, for either tools/dev/ops_renum.mak or > my > > > alternative, tools/dev/opsrenumber.pl? Is such a program only > intended > > > to provide a n

Re: Closure vs Hash Parsing

2008-08-09 Thread Patrick R. Michaud
On Fri, Aug 08, 2008 at 07:32:52AM +0200, Carl Mäsak wrote: > Jonathan (>): > > That this means the { $_ => uc $_; } above would end up composing a Hash > > object (unless the semicolon is meant to throw a spanner in the > > hash-composer works?) It says you can use sub to disambiguate, but > > > >

[perl #41508] [BUG] Configure losing flags...

2008-08-09 Thread James Keenan via RT
I think that many of the things you say are interesting, but they are part of a much broader discussion. In a conversation I had with particle and chromatic at YAPC, particle indicated that we would be revisiting the design of our configuration at a point before 1.0. So what I'm doing now is larg

[perl #57758] Mention of $0 before match yields strange error in rakudo

2008-08-09 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #57758] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=57758 > r30136: $ ./perl6 -e '$/' # works $ ./perl6 -e '"hi" ~~ /(i)/; $0' # works $ ./perl6 -

[perl #57756] Implementation of .subst for strings in rakudo

2008-08-09 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #57756] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=57756 > Patch attached. I've also fudged t/builtins/strings/subst.t in the Pugs repo, so that i

Re: [perl #57756] Implementation of .subst for strings in rakudo

2008-08-09 Thread Patrick R. Michaud
On Sat, Aug 09, 2008 at 10:24:20AM -0700, Carl Mäsak wrote: > Patch attached. > > I've also fudged t/builtins/strings/subst.t in the Pugs repo, so that > it passes with this patch applied. Thanks! A couple of items: 1. I suspect this method really belongs in src/builtins/any-str.pir instea