Re: Perl 6 Summary for 2006-01-10 though 2006-01-24

2006-01-25 Thread Klaas-Jan Stol
Matt Fowles wrote: LuaNil Morphing Klaas-Jan Stol proffered a patch which changed LuaNil from a singleton and made it morph to other Lua types when asked. Warnock applies. Actually, François Perrad applied this patch, but I think he only sent a reply to me. http://xrl.us/jpww

Perl 6 Summary for 2006-01-10 though 2006-01-24

2006-01-25 Thread Bob Rogers
From: Matt Fowles [EMAIL PROTECTED] Date: Tue, 24 Jan 2006 21:50:47 -0500 Perl 6 Summary for 2006-01-10 though 2006-01-24 Perl 6 Internals Clean Up After Yourself Bob Rogers provided a patch which makes examples/pir/io.pir clean up its temp file. Warnock

Q: pdd21 relative vs absolute

2006-01-25 Thread Leopold Toetsch
A bunch of namespace opcodes and methods could work absolute or relative. E.g. $P0 = get_namespace [Foo; Bar] Where should the lookup start? Is this to be considered absolute (from namespace root), absolute from the current HLL setting, or relative from the current namespace? Thanks, leo

Re: Object initialization protocol breakage?

2006-01-25 Thread Leopold Toetsch
Bob Rogers wrote: Sometime between r11268 (probably) and 11276, there was a change to the way that initialization methods get called, regardless of whether __init or a 'BUILD' property is used. If I do .local pmc foo, hash .local int foo_class foo_class = find_type

Re: [perl #38281] [PATCH] Remove cache.* reference from pobj.h comments

2006-01-25 Thread Leopold Toetsch
Brad Bowman (via RT) wrote: Looking through pobj.h, I found what seems to be a dated comment referring to cache.*. I don't think this exists anymore, unless it's referring to hashval in some oblique way. Sorry for the delay, I must have missed it. Anyway, your observations are correct,

Re: [perl #38288] [PATCH] Change Parrot_call to Parrot_call_sub in pdd11

2006-01-25 Thread Leopold Toetsch
Brad Bowman (via RT) wrote: -=item CParrot_call(interp, Parrot_PMC sub, Parrot_Int argcount, ...) +=item CParrot_call_sub(interp, Parrot_PMC sub, Parrot_Int argcount, ...) This still doesn't reflect src/extend.c usage. But don't worry too much about pdds/clip/* - these are being reworked.

Re: Q: pdd21 relative vs absolute

2006-01-25 Thread Joshua Isom
Having it be absolute makes more sense to me, but there likely will be people who want relative. Maybe something like: $P0 = get_namespace[;Foo;Bar] Where the empty part mean current namespace here. Of course, then it'd be really confusing because it's the opposite of pathnames on

Re: Q: pdd21 relative vs absolute

2006-01-25 Thread Matt Diephouse
Leopold Toetsch [EMAIL PROTECTED] wrote: A bunch of namespace opcodes and methods could work absolute or relative. E.g. $P0 = get_namespace [Foo; Bar] Where should the lookup start? Absolute. If people want relative lookups, I'd consider adding another opcode: $P1 = get_namespace #

Re: pdd21 notes

2006-01-25 Thread Chip Salzenberg
On Tue, Jan 24, 2006 at 12:34:28PM -0800, Chip Salzenberg wrote: add_scalar(STRING, PMC*) add_array(STRING, PMC*) add_hash(STRING, PMC*) WRT namespaces, I'm starting to think we should replace each *_var() functions with three functions *_scalar(), *_array(), and *_hash(). Parrot

ff and fff [Was: till (the flipflop operator, formerly ..)]

2006-01-25 Thread Larry Wall
I've changed the flipflop operator/macro to ff, short for flipflop. This has several benefits. It's a doubled char like other short-circuit operators. It lets us add an fff to be equivalent to p5's scalar ... operator, and either of them can take the ^ modifiers to exclude endpoints. In trying

Re: ff and fff [Was: till (the flipflop operator, formerly ..)]

2006-01-25 Thread Patrick R. Michaud
On Wed, Jan 25, 2006 at 11:37:42AM -0800, Larry Wall wrote: I've changed the flipflop operator/macro to ff, short for flipflop. This has several benefits. ... ...another of which is that we can use ff and fff to mean loud and really loud in our perl poetr^H^H^H^H^Hmusic. :-) Pm

Re: [perl #38229] [TODO] Make all pod documents(such as README's) end in .pod

2006-01-25 Thread Will Coleda
Already checked, it's not linked to. Any missing docs on the website, please open a fresh ticket. Regards. On Jan 25, 2006, at 10:08 AM, Bernhard Schmalhofer via RT wrote: jisom did most of the renaming in r11180. I renamed README.win32 in r11351. So it looks like everything is taken care

Re: Supporting safe managed references

2006-01-25 Thread Chip Salzenberg
On Tue, Jan 24, 2006 at 09:19:48AM -0800, Larry Wall wrote: On Tue, Jan 24, 2006 at 01:04:10PM -, Jonathan Worthington wrote: : Looking at what Chip said though, it would appear that the much cleaner : solution I was hoping to find exists and can be found in lex pad stuff, : which I need

Re: ff and fff [Was: till (the flipflop operator, formerly ..)]

2006-01-25 Thread Juerd
Patrick R. Michaud skribis 2006-01-25 13:47 (-0600): On Wed, Jan 25, 2006 at 11:37:42AM -0800, Larry Wall wrote: I've changed the flipflop operator/macro to ff, short for flipflop. This has several benefits. ... ...another of which is that we can use ff and fff to mean loud and really

Re: Q: interpreter-stash and namespaces

2006-01-25 Thread Chip Salzenberg
On Tue, Jan 24, 2006 at 05:43:25PM +0100, Leopold Toetsch wrote: *) what is Stash.parent_stash? (It's currently unused) Historically, stash is perl5-guts-speak for namespace. However, I see in Parrot the Stash structure which seems quite different. From its usage, I gather it's an attempt at

Re: ff and fff [Was: till (the flipflop operator, formerly ..)]

2006-01-25 Thread Rob Kinyon
On 1/25/06, Juerd [EMAIL PROTECTED] wrote: Patrick R. Michaud skribis 2006-01-25 13:47 (-0600): On Wed, Jan 25, 2006 at 11:37:42AM -0800, Larry Wall wrote: I've changed the flipflop operator/macro to ff, short for flipflop. This has several benefits. ... ...another of which is that we

Re: ff and fff [Was: till (the flipflop operator, formerly ..)]

2006-01-25 Thread Jonathan Scott Duff
On Wed, Jan 25, 2006 at 11:37:42AM -0800, Larry Wall wrote: I've changed the flipflop operator/macro to ff, short for flipflop. Two questions: 1) Will ff (and fff) require whitespace around them? 2) Do we get a more punctuationish unicode equivalent? -Scott -- Jonathan Scott Duff [EMAIL

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

2006-01-25 Thread Alberto Simões
Hi After some discussion on #parrot, and after Leo direct me to this link: http://mail.python.org/pipermail/python-dev/2006-January/060026.html Follows some discussion on File.pmc. 1) What it is now. At the moment we have two OS dependent PMCs: OS and File. OS includes stat, mkdir, remove,

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

2006-01-25 Thread Nicholas Clark
On Wed, Jan 25, 2006 at 09:10:50PM +, Alberto Simões wrote: 2) What it might be. My first idea is to join both PMCs, and create a FileSystem PMC. The main problem is its name. After looking to Python discussion, and thinking a little on the PIR syntax, I would call it Path. 3)

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

2006-01-25 Thread Alberto Simões
Nicholas Clark wrote: Is your implementation going to cope with one OS having several different types of file systems mounted, that might have different specific behaviours? I know that HFS+, ufs and ext3 all have various forms of flags/extended attributes, and in turn I'd assume that a

Re: ff and fff [Was: till (the flipflop operator, formerly ..)]

2006-01-25 Thread Juerd
Jonathan Scott Duff skribis 2006-01-25 14:49 (-0600): 1) Will ff (and fff) require whitespace around them? I hope it will be exactly like x and xx. They need whitespace around them if otherwise it'd be part of an identifier. 2) Do we get a more punctuationish unicode equivalent? I fear

Re: ff and fff [Was: till (the flipflop operator, formerly ..)]

2006-01-25 Thread Nicholas Clark
On Wed, Jan 25, 2006 at 02:49:51PM -0600, Jonathan Scott Duff wrote: On Wed, Jan 25, 2006 at 11:37:42AM -0800, Larry Wall wrote: I've changed the flipflop operator/macro to ff, short for flipflop. Two questions: 1) Will ff (and fff) require whitespace around them? 2) Do we get a more

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

2006-01-25 Thread Chip Salzenberg
Without -yet- commenting on the File/OS/Filesystem issue, this bit of code is either substantially wrong or just a convenience wrapper around what's really going on: On Wed, Jan 25, 2006 at 09:10:50PM +, Alberto Simões wrote: $P0 = new .Path(/foo/bar) [...] $P0.is_dir()

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

2006-01-25 Thread Alberto Simões
It is necessary that Parrot's filesystem interface make user-visible the _event_ of measuring the attributes of a path _or_ an already open filesystem object (e.g. calling stat() or fstat()). It must also represent the bundle of measurements returned as some kind of PMC. (handwave handwave) I

Re: File pmc, OS pmc, Path pmc and others

2006-01-25 Thread Chip Salzenberg
On Wed, Jan 25, 2006 at 10:24:51PM +, Alberto Simões wrote: Chip: The above-quoted example is only plausible if it's shorthand for, e.g.: $P1 = $P0.stat # or lstat $P1.is_dir() $P1.is_file() Looking to this code, $P0.stat should return a Stat PMC object, so we can

Re: Q: interpreter-stash and namespaces

2006-01-25 Thread Leopold Toetsch
On Jan 25, 2006, at 21:21, Chip Salzenberg wrote: On Tue, Jan 24, 2006 at 05:43:25PM +0100, Leopold Toetsch wrote: *) what is vtable-package? A pointer to the namespace PMC of this class? (It's currently unused) Beats me. Vtables don't have namespaces. Pleaes just comment it as WTF?

Re: Object initialization protocol breakage?

2006-01-25 Thread Bob Rogers
From: Leopold Toetsch [EMAIL PROTECTED] Date: Wed, 25 Jan 2006 16:54:59 +0100 Bob Rogers wrote: Sometime between r11268 (probably) and 11276, there was a change to the way that initialization methods get called, regardless of whether __init or a 'BUILD' property is used.

Re: as if [Was: Selective reuse of storage in bless.]

2006-01-25 Thread Jonathan Lang
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 is much bigger than just how do I translate Perl 5 to Perl 6.

Re: Test Script Best-Practices

2006-01-25 Thread James E Keenan
Tyler MacDonald wrote: Jeffrey Thalhammer [EMAIL PROTECTED] wrote: [snip] * When run outside of 'make test', should the test script force modules to load from the distro's lib or blib directory by default? Or should it just load from the user's existing @INC (whatever it may be). The

Re: Q: interpreter-stash and namespaces

2006-01-25 Thread Chip Salzenberg
On Thu, Jan 26, 2006 at 02:12:41AM +0100, Leopold Toetsch wrote: On Jan 25, 2006, at 21:21, Chip Salzenberg wrote: On Tue, Jan 24, 2006 at 05:43:25PM +0100, Leopold Toetsch wrote: *) what is vtable-package? A pointer to the namespace PMC of this class? (It's currently unused) Beats me.

Input / Output encoding filters.

2006-01-25 Thread Steve Gunnell
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 implementation of I/O filters.