related-constants namespace

2002-08-17 Thread Jim Cromie
ive oft wondered how a constant/parameter namespace could be designed to: - lighten Exporter symbol export in perl 5 - expose (for example) POSIX constants in only the contexts where theyre meaningful within a POSIX call - ex various c-open flags (im too lazy to cite any

Re: Just reading up on Pike...

2002-08-17 Thread damian
On Sat, 17 August 2002, Nicholas Clark wrote: But how on earth would you implement such a thing? :-) I imagine that type specifiers require that values assigned to the corresponding variable satisfy: value.isa(type). Using a superposition as a type means that the result of that test comes

Re: Just reading up on Pike...

2002-08-17 Thread damian
Aaron Sherman wrote: So, my all(str, int) $foo = $!; would be fine? I'd expect so. I'm forgetting what has been said about $! Typically contains an object with both string and integer conversions. Whether convertability to both types is enough to satisfy a superpositional type

Re: Just reading up on Pike...

2002-08-17 Thread Trey Harris
In a message dated Sat, 17 Aug 2002, [EMAIL PROTECTED] writes: [$!] Typically contains an object with both string and integer conversions. Whether convertability to both types is enough to satisfy a superpositional type is an interesting question. I suspect it *is*. Then I'd assume that

Balanced Matches in Regexps?

2002-08-17 Thread Peter Behroozi
Hello All, After reading over Apocalypse 5 one more time, I noticed that balanced matches (like capturing nested parenthetical comments ((like this))) had been glossed over in the rejection of RFC 145. What was not even mentioned in the rejection was the possibility of balanced expressions that

RE: Balanced Matches in Regexps?

2002-08-17 Thread Brent Dax
Peter Behroozi: # After reading over Apocalypse 5 one more time, I noticed that # balanced matches (like capturing nested parenthetical # comments ((like this))) had been glossed over in the # rejection of RFC 145. What was not even mentioned in the rule parenthesized { \( ( -[()] |

RE: Balanced Matches in Regexps?

2002-08-17 Thread Larry Wall
On Sat, 17 Aug 2002, Brent Dax wrote: : Peter Behroozi: : # After reading over Apocalypse 5 one more time, I noticed that : # balanced matches (like capturing nested parenthetical : # comments ((like this))) had been glossed over in the : # rejection of RFC 145. What was not even mentioned in

RE: Balanced Matches in Regexps?

2002-08-17 Thread Brent Dax
Larry Wall: # That being said, there may well be a builtin self rule that # refers to the current rule without having to name it. That # lets you write anonymous recursive rules, or possibly a # generic rule that could have more than one name. I suspected as much, but didn't use it to avoid

Re: Balanced Matches in Regexps? + tr and hashes

2002-08-17 Thread Peter Behroozi
On Sat, 2002-08-17 at 14:31, Brent Dax wrote: Peter Behroozi: # After reading over Apocalypse 5 one more time, I noticed that # balanced matches (like capturing nested parenthetical # comments ((like this))) had been glossed over in the # rejection of RFC 145. What was not even mentioned

FW: CPAN Upload: B/BR/BRENTDAX/Perl6-Parameters-0.03.tar.gz

2002-08-17 Thread Brent Dax
I've uploaded a new version of my Perl6::Parameters module. This is mostly just a make it compile version; its design is out of sync with the current Perl 6 design, a problem I'll resolve in the next version. It should be bouncing around between mirrors right now, so it may be up to a day

Re: Balanced Matches in Regexps? + tr and hashes

2002-08-17 Thread Larry Wall
On 17 Aug 2002, Peter Behroozi wrote: : However, since you forced me to read through A5 again, I now have : another question :). Since we can now do : : $string.tr %hash; : : what happens when the keys of %hash have overlapping ranges by accident : or otherwise? Are there any other options

Sigils, et all

2002-08-17 Thread Erik Steven Harrison
Somewhat random question here: We all know how to alias things in Perl 5. The binding operator allows aliasing in Perl 6, I understand. So, how do we alias grammer rules? Here are my guesses. Rules live in the same namespace as subroutines, so you can use the . Or possibly (because