Re: Q: interpreter->stash and namespaces

2006-01-26 Thread Leopold Toetsch
On Jan 26, 2006, at 5:35, Chip Salzenberg wrote: Ah yes, of *course*. PMCs have methods, and the methods need to be found somewhere, so the default place to look should be vtable->namespace. Is there a problem with killing vtable->namespace_name and replacing its usages with the existing vt

Re: Object initialization protocol breakage?

2006-01-26 Thread Leopold Toetsch
Bob Rogers wrote: I notice that using an :opt_flag here also works now; it didn't seem to before. Of course ;-) You may or may not want to include the extra test (attached). You have still troubles with svn ci? leo

Re: Input / Output encoding filters.

2006-01-26 Thread Leopold Toetsch
Steve Gunnell wrote: Hi People, Back in December I asked a question about utf8 I/O. Leo responded pointing me at the encoding filters. I then published a possible implementation of PIO_utf8_read with a request for comments. Since that time I have been thinking about the testing and implementati

Fwd: CPAN Upload: D/DO/DOMM/Module-CPANTS-Analyse-0.5.tar.gz

2006-01-26 Thread Thomas Klausner
Hi! I finally found some tuits to work on CPANTS again. As the previous implementation had some drawbacks, I started from scratch, and from another direction. I just uploaded Module::CPANTS::Analyse to CPAN. MCA contains most of the previous Kwalitee indicators and some code to check if one distr

perl6-all@perl.org

2006-01-26 Thread Stevan Little
On 1/25/06, Jonathan Lang <[EMAIL PROTECTED]> wrote: > Larry Wall wrote: > > But my hunch is that it's > > a deep tagmemic/metaphorical problem we're trying to solve here. > > Such issues arise whenever you start making statements of the form > > "I want to use an A as if it were a B." The problem

perl6-all@perl.org

2006-01-26 Thread Rob Kinyon
On 1/26/06, Stevan Little <[EMAIL PROTECTED]> wrote: > Actually this might not be a bad approach in this case. Take this for > instance: > > method foo (Foo $self, $key) { > ((Hash) $self){$key} > } > > The syntax is ugly, but it makes what you are doing more explicit. I > would also think tha

perl6-all@perl.org

2006-01-26 Thread Stevan Little
On 1/26/06, Rob Kinyon <[EMAIL PROTECTED]> wrote: > On 1/26/06, Stevan Little <[EMAIL PROTECTED]> wrote: > > Actually this might not be a bad approach in this case. Take this for > > instance: > > > > method foo (Foo $self, $key) { > > ((Hash) $self){$key} > > } > > > > The syntax is ugly, but

perl6-all@perl.org

2006-01-26 Thread Rob Kinyon
On 1/26/06, Stevan Little <[EMAIL PROTECTED]> wrote: > > If there is need to treat something as a Hash, then provide it with a > > postcircumfix<{}> and leave it at that. It's highly unlikely that you > > will want to add Hash-like behavior to something that already has a > > postcircumfix<{}> beca

perl6-all@perl.org

2006-01-26 Thread Stevan Little
On 1/26/06, Rob Kinyon <[EMAIL PROTECTED]> wrote: > On 1/26/06, Stevan Little <[EMAIL PROTECTED]> wrote: > > > If there is need to treat something as a Hash, then provide it with a > > > postcircumfix<{}> and leave it at that. It's highly unlikely that you > > > will want to add Hash-like behavior

Re: Input / Output encoding filters.

2006-01-26 Thread Nicholas Clark
On Thu, Jan 26, 2006 at 03:22:11PM +0800, Steve Gunnell wrote: > 5) Seeking through an encoding filter could be highly problematic. > Filters such as "utf8" that have a non-deterministic byte per character > ratio should politely refuse seeks. In theory it ought to be possible to seek back to any

Re: [PROPOSAL] File pmc, OS pmc, Path pmc and others

2006-01-26 Thread Joshua Hoblitt
On Wed, Jan 25, 2006 at 10:24:51PM +, Alberto Sim?es wrote: > For me, both options are reasonable. Chip's proposal have the advantage > of caching the info. Using is_dir and is_file to stat everytime, have > the advantage of not having a specific Stat PMC object. > Other option, is having one

Re: Object initialization protocol breakage?

2006-01-26 Thread Bob Rogers
From: Leopold Toetsch <[EMAIL PROTECTED]> Date: Thu, 26 Jan 2006 12:45:11 +0100 Bob Rogers wrote: > I notice that using an :opt_flag here also works now; it didn't seem to > before. Of course ;-) What is it they say about weapons pacts? "Trust but verify"? ;-} > You ma

Re: Input / Output encoding filters.

2006-01-26 Thread Joshua Hoblitt
On Thu, Jan 26, 2006 at 07:18:55PM +, Nicholas Clark wrote: > On Thu, Jan 26, 2006 at 03:22:11PM +0800, Steve Gunnell wrote: > > > 5) Seeking through an encoding filter could be highly problematic. > > Filters such as "utf8" that have a non-deterministic byte per character > > ratio should pol