Re: [RFC] extension guessing, functionally better loader behavior -> working install target

2007-05-15 Thread Mike Mattie
On Sun, 13 May 2007 22:46:15 -0700 Mike Mattie <[EMAIL PROTECTED]> wrote: > Hello, > I figured anyone who actually makes it from top to bottom of the RFC might want to see what it looks like in C code. Since I will be gone for a bit I am attaching my in-progress copy of src/library.c . It is n

Parrot 0.4.12 "Of the Caribbean" Released

2007-05-15 Thread chromatic
As I sailed into Shadow, a white bird of my desire came and sat upon my right shoulder, and I wrote a note and tied it to its leg and sent it on its way. The note said, "I am coming," and it was signed by me. ... The sun hung low on my left and the winds bellied the sails and

Re: [RFC] extension guessing, functionally better loader behavior -> working install target

2007-05-15 Thread Mike Mattie
On Sun, 13 May 2007 22:46:15 -0700 Mike Mattie <[EMAIL PROTECTED]> wrote: > Hello, > I figured anyone who actually makes it from top to bottom of the RFC might want to see what it looks like in C code. Since I will be gone for a bit I am attaching my in-progress copy of src/library.c . It is n

[perl #42964] Parrot 0.4.13 Release

2007-05-15 Thread via RT
# New Ticket Created by chromatic # Please include the string: [perl #42964] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=42964 > This ticket is a placeholder for the 0.4.13 release on 19 June 2007.

Re: [perl #42919] [BUG] and [PATCH] overriding 'invoke' requires current object to be explicitly passed

2007-05-15 Thread Mehmet Yavuz Selim Soyturk
On 5/15/07, Alek Storm <[EMAIL PROTECTED]> wrote: On 5/14/07, Mehmet Yavuz Selim Soyturk <[EMAIL PROTECTED] > wrote: > Should we not be able to use an object that implements 'invoke' as a > method of another object? There is some strange behaviour when I try > to. I see what you're saying, and i

Re: [RFC] extension guessing, functionally better loader behavior -> working install target

2007-05-15 Thread Mike Mattie
On Sun, 13 May 2007 22:46:15 -0700 Mike Mattie <[EMAIL PROTECTED]> wrote: > Hello, > [snip RFC] Here is a revised and cleaned up specification of the search algorithm taken from my current description of the Parrot_locate_runtime_str function. /* =item C Parrot_locate_runtime_str searches t

Preliminary NEWS Update for 0.4.12

2007-05-15 Thread chromatic
Hi all, Here's what the NEWS will say for Parrot 0.4.12. Additions and corrections welcome. -- c Refactored configuration system - improved tests - improved documentation Better object support (PDD 15) Language updates: - abc - Plumhead - Lua - Tcl - Lisp (reclaim

[svn:parrot-pdd] r18563 - in trunk: . compilers/json compilers/tge compilers/tge/TGE config/auto config/auto/cpu/i386 config/auto/cpu/ppc config/auto/cpu/sun4 config/auto/cpu/x86_64 config/gen config/

2007-05-15 Thread chromatic
Author: chromatic Date: Tue May 15 17:53:55 2007 New Revision: 18563 Modified: trunk/docs/pdds/draft/pdd04_datatypes.pod trunk/docs/pdds/draft/pdd05_opfunc.pod trunk/docs/pdds/draft/pdd06_pasm.pod trunk/docs/pdds/draft/pdd11_extending.pod trunk/docs/pdds/draft/pdd16_native_call.pod

Re: [perl #42950] [PATCH] mswin32 (msvc) builds don't need -lodbc32

2007-05-15 Thread chromatic
On Monday 14 May 2007 12:47:59 Mark Glines wrote: > I removed it from the linker line, did a configure, build, and smoke. > I detected no ill effects. (other than an intermittant "three alarms" > thing in t/dynoplibs/myops.t that was there before the change.) So, > how about removing it? Applie

Re: [PATCH] Re: [perl #37819] Sun4 builds fail linking against jit.o

2007-05-15 Thread chromatic
On Wednesday 09 May 2007 07:21:44 Andy Dougherty wrote: > [appending to an old ticket, since if anyone wants to ever get this > working again, they'll probably have to fix up the blind guesses I made in > that old patch too.] Thanks, applied as r18562 (er, oops -- r18561, due to an excruciatingly

Re: [perl #42918] [PATCH] src/library.c use mem_sys_free instead of free()

2007-05-15 Thread chromatic
On Thursday 10 May 2007 17:15:52 Mike Mattie wrote: > I noticed that I dropped it. I went into the RT system immediately after > sending and attached the file. It's a really trivial change but the > patch is there, just two instances of free converted to mem_sys_free. > > btw passed harness on i68

Re: explicit line termination with ";": why?

2007-05-15 Thread Jonathan Lang
Larry Wall wrote: Dave Whipp wrote: : A slightly tangental thought: is the behavior of C with no block : defined? I.e. is It would be illegal syntax currently. As I understand it, the proposal is to say that if the parser finds a ';' where it was expecting to find a control block, it treats th

Re: [perl #42954] [CAGE] remove compilers/imcc/rebuild.pl

2007-05-15 Thread chromatic
On Tuesday 15 May 2007 06:20:05 Jerry Gay wrote: > it seems F isn't used anymore, and can be > removed. Yeah, that's way old. Removed in r18559. -- c

Re: [perl #42961] [PATCH] add const qualifiers to free signature

2007-05-15 Thread Leopold Toetsch
Am Dienstag, 15. Mai 2007 21:28 schrieb Nicholas Clark: > On Tue, May 15, 2007 at 12:10:09PM -0700, Mike Mattie wrote: > > If someone remembers the magic to muzzle the compiler around free( from ) > > in memory.c please feel free to amend the patch. > > I remember being told that there's a trick in

Re: [perl #42919] [BUG] and [PATCH] overriding 'invoke' requires current object to be explicitly passed

2007-05-15 Thread Alek Storm
On 5/15/07, Allison Randal via RT <[EMAIL PROTECTED]> wrote: And reverted in r18541. The patch is fragile. Broken on Windows, and fixing it for Windows breaks it for OSX and Linux. Whoops, I had no idea it didn't work on Windows. I have no way to test on that platform. What was the problem?

Re: [perl #42919] [BUG] and [PATCH] overriding 'invoke' requires current object to be explicitly passed

2007-05-15 Thread Alek Storm
On 5/14/07, Mehmet Yavuz Selim Soyturk <[EMAIL PROTECTED] > wrote: Should we not be able to use an object that implements 'invoke' as a method of another object? There is some strange behaviour when I try to. I see what you're saying, and it looks like you want a functor. We can't do exactly

Re: [svn:parrot] r18547 - in trunk/src: . io pmc

2007-05-15 Thread jerry gay
On 5/15/07, chromatic <[EMAIL PROTECTED]> wrote: On Tuesday 15 May 2007 09:08:47 [EMAIL PROTECTED] wrote: > Log: > eliminate some compiler warnings > ~ all tests pass > > Modified: trunk/src/debug.c > === >=== --- trunk/src/

Re: [perl #42962] [Ops] sprintf.t Fails on x86-64 Linux

2007-05-15 Thread chromatic
On Tuesday 15 May 2007 12:31:08 chromatic wrote: > From pmichaud: > > [EMAIL PROTECTED]:~/parrot/trunk> prove -v t/op/sprintf.t > t/op/sprintf1..308 > parrot: src/string.c:727: string_str_index: Assertion `s->encoding && > s->charset && !(((s)->obj.flags) & b_PObj_on_free_list_FLAG)' failed. >

[perl #42962] [Ops] sprintf.t Fails on x86-64 Linux

2007-05-15 Thread via RT
# New Ticket Created by chromatic # Please include the string: [perl #42962] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=42962 > >From pmichaud: [EMAIL PROTECTED]:~/parrot/trunk> prove -v t/op/sprintf.t t/op/sprintf

Re: explicit line termination with ";": why?

2007-05-15 Thread Daniel Hulme
On Tue, May 15, 2007 at 01:14:44PM -0600, Luke Palmer wrote: > However, I do think that it's useful to be able to treat the rest of > the current scope as a block (usually with a parameter), for certain > kinds of closure-heavy code. Maybe this is a case for one of Mr. Lang's custom semicolons with

[perl #42961] [PATCH] add const qualifiers to free signature

2007-05-15 Thread via RT
# New Ticket Created by Mike Mattie # Please include the string: [perl #42961] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=42961 > This patch adds const qualifiers to string_cstring_free , and mem_sys_free. In reviewing

Re: explicit line termination with ";": why?

2007-05-15 Thread Larry Wall
On Tue, May 15, 2007 at 11:59:35AM -0700, Dave Whipp wrote: : Jonathan Lang wrote: : : >Close. I'm thinking "added functionality for semicolon alternatives" : >rather than the "replace the semicolon" stunt that Semi::Semicolons : >pulls. In particular, as long as there's no ambiguity between : >

Re: [perl #42961] [PATCH] add const qualifiers to free signature

2007-05-15 Thread Nicholas Clark
On Tue, May 15, 2007 at 12:10:09PM -0700, Mike Mattie wrote: > If someone remembers the magic to muzzle the compiler around free( from ) > in memory.c please feel free to amend the patch. I remember being told that there's a trick involving a union. Something like union { void *out; const vo

Re: explicit line termination with ";": why?

2007-05-15 Thread Luke Palmer
On 5/15/07, Dave Whipp <[EMAIL PROTECTED]> wrote: A slightly tangental thought: is the behavior of C with no block defined? I.e. is given $foo { when 1 {...} }; equivalent to given $foo; when 1 {...}; Doubtful. However, I do think that it's useful to be able to treat the rest of the current

[perl #42959] Re: [svn:parrot] r18547 - in trunk/src: . io pmc

2007-05-15 Thread via RT
# New Ticket Created by Jerry Gay # Please include the string: [perl #42959] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=42959 > On 5/15/07, chromatic <[EMAIL PROTECTED]> wrote: > On Tuesday 15 May 2007 09:08:47 [EMAIL P

Re: Feeling Slushy

2007-05-15 Thread Leopold Toetsch
Am Dienstag, 15. Mai 2007 01:17 schrieb chromatic: > Hi everyone, > > I'm handling the release tomorrow, so please hold off on changes to the > core code until after the release. Documentation and typo fixes are fine. > Language changes are fine too. Not-too-invasive bug fixes are good. > > In th

[perl #42960] Re: [svn:parrot] r18547 - in trunk/src: . io pmc

2007-05-15 Thread via RT
# New Ticket Created by chromatic # Please include the string: [perl #42960] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=42960 > On Tuesday 15 May 2007 11:22:25 jerry gay wrote: > just below this code in that file, ther

Re: explicit line termination with ";": why?

2007-05-15 Thread Dave Whipp
Jonathan Lang wrote: Close. I'm thinking "added functionality for semicolon alternatives" rather than the "replace the semicolon" stunt that Semi::Semicolons pulls. In particular, as long as there's no ambiguity between prefix: and postfix:, I think that it would be quite useful for postfix: t

Re: [svn:parrot] r18547 - in trunk/src: . io pmc

2007-05-15 Thread chromatic
On Tuesday 15 May 2007 11:22:25 jerry gay wrote: > just below this code in that file, there's an #if 0 block i'm not > responsible for. there vars were used only in that block. i wrapped > them in #if 0 simply to remove the warning, while keeping the intent > of the code the same. > > i agree that

Re: [svn:parrot] r18547 - in trunk/src: . io pmc

2007-05-15 Thread chromatic
On Tuesday 15 May 2007 09:08:47 [EMAIL PROTECTED] wrote: > Log: > eliminate some compiler warnings > ~ all tests pass > > Modified: trunk/src/debug.c > === >=== --- trunk/src/debug.c   (original) > +++ trunk/src/debug.c   Tue

Re: Is Perl 6 too late?

2007-05-15 Thread Larry Wall
On Mon, May 14, 2007 at 10:48:34PM -0700, Garrett Cooper wrote: : No one mentioned that if it wasn't for sigils, many strings would be : increased, length-wise, to do operator concatentation. If it wasn't for : that then simple string insertions couldn't be used. Well, except you can interpolate

Re: [PATCH] Add a few clarifying comments about res_lea.c

2007-05-15 Thread Allison Randal
Andy Dougherty wrote: This patch adds a few clarifications to comments. And I'm afraid this is how I'll have to leave it for now. Applied in r18549, and many thanks! Allison

Re: [perl #42947] [PATCH] revise Parrot_get_runtime_prefix API for safety and usablility

2007-05-15 Thread Mike Mattie
On Tue, 15 May 2007 05:24:06 -0700 "Paul Cochrane via RT" <[EMAIL PROTECTED]> wrote: > On 14/05/07, via RT Mike Mattie <[EMAIL PROTECTED]> > wrote: > > # New Ticket Created by Mike Mattie > > # Please include the string: [perl #42947] > > # in the subject line of all future correspondence about

Re: Error calling bless in non-default constructor

2007-05-15 Thread Matthew Keene
Thanks for all your help. Interestingly enough the .perl method reports that the parameter passed to the new method is stored in the object whether it's defined as an attribute or not: class MattTest { has Str $.bar ; submethod BUILD (:$foo) { say "passed $foo"; $.bar

[perl #42954] [CAGE] remove compilers/imcc/rebuild.pl

2007-05-15 Thread via RT
# New Ticket Created by Jerry Gay # Please include the string: [perl #42954] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=42954 > it seems F isn't used anymore, and can be removed. from the pod: =head1 TITLE rebuild.pl

Re: Error calling bless in non-default constructor

2007-05-15 Thread David Brunton
>I think so (after fixing a couple of minor typos). > >Does this mean that you can only pass defined attributes to a constructor ? >What if you want to pass parameters that are used during build but don't >actually need to be stored in the object ? Hopefully you don't mind my cc'ing the list-

Re: [perl #42947] [PATCH] revise Parrot_get_runtime_prefix API for safety and usablility

2007-05-15 Thread Paul Cochrane
On 14/05/07, via RT Mike Mattie <[EMAIL PROTECTED]> wrote: # New Ticket Created by Mike Mattie # Please include the string: [perl #42947] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=42947 > Hello, This patch changes the

Re: Error calling bless in non-default constructor

2007-05-15 Thread David Brunton
Is this what you're looking for? class MattTest { has Str $.string; submethod BUILD (:$string) { ## submethod BUILD is the constructor ## :$string is a named argument "string" say "passed $string"; } } my $test = MattTest(:stri

Error calling bless in non-default constructor

2007-05-15 Thread Matthew Keene
I'm trying to use a non-default constructor for a class under Pugs 6.2.13, like so class MattTest { sub new (Class $class : Str $string) { say "Passed $string to the constructor for $class" ; return $class.bless ; } } my $test = MattTest.new('abc') ; This is failing with the fol