Re: RFC 161 (v2) OO Integration/Migration Path

2000-08-28 Thread Matt Youell
> I just want to hit this point a little more, to make sure we're actually > in agreement. Ok, ok... sorry about this. I've been hammering away at a stubborn gray area and now I'm seeing that "duh!" it's all right there. Yes, of course 'int' would be a subclass of Scalar. You know, it's silly...

Re: New variable type: matrix

2000-08-28 Thread Christian Soeller
Jeremy Howard wrote: > Basically, I want to be able to create a list ref of list refs, specify a > data type (eg 'int') and attributes of ':compact' or ':sparse', and have the As Dan Sugalski suggested it seems not a good idea to bring in the list of list ref into the proposal. Why does it have

Re: Multiple for loop variables

2000-08-28 Thread Graham Barr
On Mon, Aug 28, 2000 at 04:10:01PM -0400, Eric Roode wrote: > Peter Scott wrote: > >Graham Barr once allowed as how he thought it would be neat if you could say > > > > for my($x, $y, $z) (@list) { ... } > > ObLanguageMinimalist: > > Um. Is this so frequently-used that the above syntax is pr

Re: New variable type: matrix

2000-08-28 Thread Jeremy Howard
Buddha Buck wrote: > > I think the better way is to take Buddha's idea (soon to be RFC'ed, by > > the sounds of it), and make current arrays a little more flexible. It > > sounds like we'll just have to add an extra dimension somehow, and then > > "arrays of compact arrays" will simply be "arrays

Re: New variable type: matrix

2000-08-28 Thread Buddha Buck
> I think the better way is to take Buddha's idea (soon to be RFC'ed, by > the sounds of it), and make current arrays a little more flexible. It > sounds like we'll just have to add an extra dimension somehow, and then > "arrays of compact arrays" will simply be "arrays with some compact > elemen

Re: New variable type: matrix

2000-08-28 Thread Nathan Wiger
Christian Soeller wrote: > > The other problem with arrays is: how do we deal with functions that > take multiple piddle arguments if they are arrays: > >@result = integrate @x, @y, @bounds; > > Won't those all be clumped into one big input array? This should be overrideable by prototypes.

Re: New variable type: matrix

2000-08-28 Thread Nathan Wiger
Doug Hunt wrote: > > What I meant to say (but failed, alas) was that I support the idea for a > new perl variable type called compact array: > > $foo -- scalar > @foo -- array > %foo -- hash > ^foo -- compact array (or whatever notation) > > Given this notation, you could have hashes of compa

Re: Structured exception handling should be a core module.

2000-08-28 Thread Tony Olekshy
Peter Scott wrote: > > Tony Olekshy wrote: > > > > So if open, for example, can set $! without invoking die, then > > $! and $@ must not be merged. As I read it, 151 would (as > > currently promulgated) not meet my requirement for the unique > > nature of a $@-style variable. I don't think ov

Re: RFC 122 (v1) types and structures

2000-08-28 Thread Chaim Frenkel
This is a bit limiting. I'd offer a more flexible approach. We should be able to represent any packed structure. We should be able to handle anything that an pack/unpack format can currently handle. Except that the data does not have to be moved out into an array/hash. This might fit in with t

Re: New match and subst replacements for =~ and !~ (was Re: RFC 135 (v2) Require explicit m on matches, even with ?? and // as delimiters.)

2000-08-28 Thread Nathan Wiger
"Randy J. Ray" wrote: > > ># These are pretty cool... > >foreach (@old) { @new = subst /hello/X/gi, @old; > > s/hello/X/gi; > > push @new, $_; > >} > > > This implies that the subst keyword would *both* modify LIST in-place and > return a complete copy of t

Role of perl6-language-data

2000-08-28 Thread Jeremy Howard
First of all, apologies for my lack of input over the last week--unfortunately I went on holidays pretty much as this list went online, so I've been pretty quiet. Anyhow, for those who don't know me, I'm the chair of perl6-language-data. For the remainder of its existance I'll be more active. Thi

Re: RFC 161 (v2) OO Integration/Migration Path

2000-08-28 Thread Nathan Wiger
Steve Fink wrote: > > But then what does my $x = BlueFoo->new(); print > "$x" do, assuming there is a BlueFoo::STRINGIFY? Print > "BlueFoo=HASH(0x0b38134)"? The current thinking it to preserve the default behavior, which would be to print out the ref info, UNLESS there is a STRING function. That

Re: RFC 161 (v2) OO Integration/Migration Path

2000-08-28 Thread Nathan Wiger
Matt Youell wrote: > > Originally I was trying to avoid explicit typing through new keywords, like > 'int'. So the latter option would have been the case. But after Nathan > Wiger's reply to my RFC, I realized that either syntax would work. Under one > scenario, 'int', as in your example, would si

Fwd: Re: Automated "no status" messages

2000-08-28 Thread skud
The way people seem to be showing the status of RFCs is by putting "Status: foo" up near the maintainer info etc. This makes good sense. Can this be reflected in the sample RFC and the instructions and so on? K. - Forwarded message from Peter Scott <[EMAIL PROTECTED]> - >From: Peter Sc

Re: On the case for exception-based error handling.

2000-08-28 Thread Peter Scott
At 12:16 PM 8/27/00 -0400, Bennett Todd wrote: > > The ramifications of some of these things are sufficiently > > important that drawing attention to them might be a good thing. > > In this case, note that Perl 6 will need to spell out which core > > exceptions are by default fatal (eg, :arithmeti

Re: RFC 164 (v1) Replace =~, !~, m//, and s/// with match() and subst()

2000-08-28 Thread Chaim Frenkel
Make your suggestions. But I think it is all off-base. None of this is addressing some improvement in working conditions, ease of use, problems in the language, etc. You are addressing stylistic issues. Issues that effect the way _I_ want to work with the language. All of you are being fascist.

Re: Structured exception handling should be a core module.

2000-08-28 Thread Peter Scott
At 01:42 AM 8/25/00 -0600, Tony Olekshy wrote: >Peter Scott wrote: > > If $@ and $! are merged, then in code like > > > > try { > > system_call_that_fails(); > > more_stuff_that_succeeds(); > > } > > finally { > > } > > > > does

Re: RFC 148 (v1) Add reshape() for multi-dimensional array reshaping

2000-08-28 Thread Christian Soeller
Karl Glazebrook wrote: > > Consider > > @x[10:20, 20:40:2, 30:50] > > This ALMOST works in the current Perl. @x gives array context, > then the , produces a list. I see a number of problems with the current (scalar) PDL objects being turned (essentially) into perl arrays in perl6. 1) How do y

Re: RFC 159 (v1) True Polymorphic Objects

2000-08-28 Thread Jeremy Howard
Tom Christiansen wrote: > Hm I don't recall C++ ever thinking to overload the control-flow > operators ("&&", "||", "," (that is, comma), and "?:"). Why not? > Even if their "a && b" should produce a more mundane 1 or 0, one > still might wish control. > '&&', '||', et al are just operato

Re: Structured exception handling should be a core module.

2000-08-28 Thread Peter Scott
At 10:13 AM 8/25/00 +0200, Bart Lateur wrote: >You're citing my objection for merging in $@ with the rest of the error >variables. $@ currently is the "eval failed" flag, irrespective of what >else failed. We *must* have such a flag. If $@ and $! would be merged, >$! will have to be cleared if the

Re: Are Perl6 threads preemptive or cooperative?

2000-08-28 Thread David L. Nicol
Chaim Frenkel wrote: > > > "DLN" == David L Nicol <[EMAIL PROTECTED]> writes: > > DLN> What if every subroutine tagged itself with a list of the globals > DLN> it uses, so a calling routine would know to add those to the list > DLN> of globals it wants locked? > > And what about all the sub

Creating Perl 6, not Perl++ (was Re: RFC 164 (v1) Replace =~, !~, m//, and s/// with match() and subst())

2000-08-28 Thread Nathan Wiger
Tom Christiansen wrote: > > But if *MOST* perl1 .. perl5 programs aren't going to work unchanged, > that means that most people's existing perl knowledge-base will no > longer be valid. That probably means that they aren't going to be > able to just type in the Perl that they already know, either

Re: RFC 164 (v1) Replace =~, !~, m//, and s/// with match() and subst()

2000-08-28 Thread Tom Christiansen
>But for style, I don't see why >the interpreter can't also check for various non-obscure syntaxes / styles. (You mean "compiler", not interpreter.) You have to be quite careful there: Perl is so humungous that what's obscure to one person is well-known to the next. For example, $#foo is vergin

Re: RFC 164 (v1) Replace =~, !~, m//, and s/// with match() and subst()

2000-08-28 Thread Nathan Torkington
Tom Christiansen writes: > if you truly must--are important things. If the perl6:perl5 > relationship is similar in breadth to what we saw in the perl5:perl4 > one, then perhaps, maybe even probably, one will get away with it. > However, if the stretch is appreciably further, I don't think one >

Re: RFC 164 (v1) Replace =~, !~, m//, and s/// with match() and subst()

2000-08-28 Thread Tom Christiansen
>The compatibility path for perl5 to perl6 is via a translator. It >is not expected that perl6 will run perl5 programs unchanged. The >complexity of the translator and the depth of the changes will be >decided by the decisions Larry makes. This becomes not merely "It is not expected that perl

Re: New variable type: matrix

2000-08-28 Thread Damian Conway
> > ^foo -- compact array (or whatever notation) > > I seem to remember that ^ was in the process of being highjacked by some > other RFC already. Was it higher-order functions? Yes: RFC 23 (v4): Higher order functions Damian

Re: RFC 164 (v1) Replace =~, !~, m//, and s/// with match() and subst()

2000-08-28 Thread Nathan Torkington
Michael Maraist writes: > Compatibility is going to have to be maintained somehow. And we can either > have some sort of perl6 designator (such as the pragma) to designate > incompatible (and otherwise ambiguous) code, or we're going to have to > continue tacking on syntactic sugar to legacy code

Re: New variable type: matrix

2000-08-28 Thread Christian Soeller
Doug Hunt wrote: > What I meant to say (but failed, alas) was that I support the idea for a > new perl variable type called compact array: > > $foo -- scalar > @foo -- array > %foo -- hash > ^foo -- compact array (or whatever notation) I seem to remember that ^ was in the process of being hig

Re: RFC 118 (v1) lvalue subs: parameters, explicit assignment, andwantarray() changes

2000-08-28 Thread Nathan Torkington
Hildo Biersma writes: > Hold on - post conditions are not intended to veto a change, they're > intended to terminate the program if an assertion is invalid. Hence it > should not matter if they run before or after assignment. > > Given that the assertion should be "now this and that should be tr

Re: RFC 164 (v1) Replace =~, !~, m//, and s/// with match() and subst()

2000-08-28 Thread Michael Maraist
> >Simple solution. > > >If you want to require formats such as m/.../ (which I actually think is a > >good idea), then make it part of -w, -W, -ww, or -WW, which would be a perl6 > >enhancement of strictness. > > That's like having "use strict" enable mandatory perlstyle compliance > checks, an

Re: RFC 110 (v3) counting matches

2000-08-28 Thread Mark-Jason Dominus
> > 1. Return the number of matches > > > > 2. Iterate over each match in sequence > > > > 3. Return list of all matches > > > > 4. Return a list of backreferences > > Please see RFC 164. It can handle all of 1-3. You seem to have missed my point. I'm not ask

Re: RFC 110 (v3) counting matches

2000-08-28 Thread Mark-Jason Dominus
> Drawing on some of the proposals for extended 'for' syntax: > for my($mo, $dy, $yr) ($string =~ /(\d\d)-(\d\d)-(\d\d)/g) { > ... > } > > This still requires that you know how many () matching groups are in > the RE, of course. I don't think I would consider that onerous. If ther rege

Re: RFC 110 (v3) counting matches

2000-08-28 Thread Damien Neil
On Mon, Aug 28, 2000 at 06:05:03PM -0400, Mark-Jason Dominus wrote: > # WRONG > while (($mo, $dy, $yr) = ($string =~ /\d\d-\d\d-\d\d/g)) { > ... > } I assume you mean: while (($mo, $dy, $yr) = ($string =~ /(\d\d)-(\d\d)-(\d\d)/g)) { ... } Drawing on some

Re: New variable type: matrix

2000-08-28 Thread Doug Hunt
Christian: You are right, it would not be best to confuse normal perl lists with compact arrays--they both have their purposes and can be combined usefully. What I meant to say (but failed, alas) was that I support the idea for a new perl variable type called compact array: $foo -- scalar @foo

Re: RFC 159 (v1) True Polymorphic Objects

2000-08-28 Thread Tom Christiansen
>I can currently overload + < > * to do this, but not &&. That's broken. Hm I don't recall C++ ever thinking to overload the control-flow operators ("&&", "||", "," (that is, comma), and "?:"). Why not? Even if their "a && b" should produce a more mundane 1 or 0, one still might wish contr

Re: RFC 164 (v1) Replace =~, !~, m//, and s/// with match() and subst()

2000-08-28 Thread Nathan Wiger
Tom Christiansen wrote: > > How nice of you to put words in my mouth. Please cite me the precise > message ID, date, and appropriate text in which I said "we can't > change anything because of precedent". First off, I wasn't trying to insult you, or push a hot button, or suggest we should destro

Re: RFC 152 (v1) Replace $self in @_ with self() builtin (not $ME )

2000-08-28 Thread Damian Conway
> What about > > sub somename : method (@args) {...} > > And leaving your$self some other way at the object? That's the idea. By default you get the invocant in $_[0], but you can have the compiler extract it for you via C. Then you get to choose your access mechanism (lexica

Re: RFC 110 (v3) counting matches

2000-08-28 Thread Nathan Wiger
Mark-Jason Dominus wrote: > > > > $count = () = $string =~ /pattern/g; > > > > Which I find cute as a demonstration of the Perl's context concept, > > but ugly as hell from usability viewpoint. > > I'd really like to see an RFC that looks into making the following > features more orthogonal:

Re: RFC 164 (v1) Replace =~, !~, m//, and s/// with match() and subst()

2000-08-28 Thread Tom Christiansen
>Simple solution. >If you want to require formats such as m/.../ (which I actually think is a >good idea), then make it part of -w, -W, -ww, or -WW, which would be a perl6 >enhancement of strictness. That's like having "use strict" enable mandatory perlstyle compliance checks, and rejecting the

Re: RFC 110 (v3) counting matches

2000-08-28 Thread Damien Neil
On Mon, Aug 28, 2000 at 01:30:41PM -0500, Jarkko Hietaniemi wrote: > > $count = () = $string =~ /pattern/g; > > Which I find cute as a demonstration of the Perl's context concept, > but ugly as hell from usability viewpoint. I how to assign to an > empty list to get a number of something? H

Re: multidim. containers

2000-08-28 Thread Christian Soeller
Dan Sugalski wrote: > If you want efficiency, n-dimensional arrays really need to be a concrete > data type all of their own. That way one big block of memory can be > allocated and, if it's a typed array, properly sized. I wholeheartedly agree ;) > > That doesn't mean that n-dimensional array

Re: New match and subst replacements for =~ and !~ (was Re: RFC 135 (v2) Require explicit m on matches, even with ?? and // as delimiters.)

2000-08-28 Thread Randy J. Ray
> Just to extend this idea, at least for the exercise of it, consider: > >match; # all defaults (pattern is /\w+/?) >match /pat/;# match $_ >match /pat/, $str; # match $str >match /pat/, @strs; # match any of @strs > >subst; # like s///, pre

Re: Are Perl6 threads preemptive or cooperative?

2000-08-28 Thread Chaim Frenkel
> "DLN" == David L Nicol <[EMAIL PROTECTED]> writes: DLN> What if every subroutine tagged itself with a list of the globals DLN> it uses, so a calling routine would know to add those to the list DLN> of globals it wants locked? And what about all the subroutines _it_ will call? And if you so

Re: RFC 152 (v1) Replace $self in @_ with self() builtin (not $ME )

2000-08-28 Thread Tom Christiansen
>I think they would *improve* readability. Certainly over $_[0], and >even over: > sub method { > my ($self, @args) = @_; > ... > } >I'm *forever* writing that and just it clutters up the code. What about sub somename : method (@args) { ...

Re: RFC 118 (v1) lvalue subs: parameters, explicit assignment, andwantarray() changes

2000-08-28 Thread Chaim Frenkel
What you want is a pre-condition on the overridden assignment operator. What you want to do may involve having the suggested transactional variables. > "NT" == Nathan Torkington <[EMAIL PROTECTED]> writes: NT> Damian Conway writes: >> pre mymethod : group("safe-coding practice") { @_ > 0

Re: RFC 168 (v1) Built-in functions should be functions

2000-08-28 Thread Tom Christiansen
>Well, as I mentioned in another recent parallel thread, if C is to >be properly functionalized, Whoa -- why? Syntax keywords (eg if, unless) certainly need not be expressible as functions.This isn't tcl! --tom

Re: RFC 118 (v1) lvalue subs: parameters, explicit assignment, andwantarray() changes

2000-08-28 Thread Chaim Frenkel
> "DC" == Damian Conway <[EMAIL PROTECTED]> writes: DC> However, I have given thought to allowing conditions to be grouped, DC> and de-activated by group. This would probably meet your need. >> DC> pre mymethod : group("safe-coding practice") { @_ > 0 } DC> pre mymethod : group("debugging")

Re: RFC 110 (v3) counting matches

2000-08-28 Thread Mark-Jason Dominus
> > $count = () = $string =~ /pattern/g; > > Which I find cute as a demonstration of the Perl's context concept, > but ugly as hell from usability viewpoint. I'd really like to see an RFC that looks into making the following features more orthogonal: 1. Return the number of match

Re: RFC 155 (v2) Remove mathematic and trigonomic functions from core binary

2000-08-28 Thread Jarkko Hietaniemi
> I'm still in favor of moving the socket functions into Socket if for no > other reason than it may help beat into people's heads that code like: > > eval 'require "sys/socket.ph"'; > eval 'sub SOCK_DGRAM {-f "/vmunix" ? 2 : 1;}' if $@; > > and > > $csock = pack('S n a4 x8', 2, 0,

Re: RFC 155 (v2) Remove mathematic and trigonomic functions from core binary

2000-08-28 Thread Russ Allbery
Stephen P Potter <[EMAIL PROTECTED]> writes: > At this point, should I go ahead and abandon the Math/Trig and/or > Sockets ones? I'm still in favor of moving the socket functions into Socket if for no other reason than it may help beat into people's heads that code like: eval 'require "sys/

Re: RFC 130 (v4) Transaction-enabled variables for Perl6

2000-08-28 Thread Chaim Frenkel
> "SF" == Steve Fink <[EMAIL PROTECTED]> writes: SF> Or what about a variable attribute: SF> my $x : transactional SF> and making the effect completely lexical? Why would other scopes need to SF> see such variables? You haven't handled the multiple variable variety. You will need to able t

Re: New variable type: matrix

2000-08-28 Thread Christian Soeller
Doug Hunt wrote: > But I would like to speak up in support of Baris' idea. I have long > found it > confusing (both to myself and to those I must explain my code to) the > mix of > pdl multi-dimensional lists (lists of refs to lists) and PDLs, which > appear to be scalars. I was even asked once

Re: multidim. containers

2000-08-28 Thread Dan Sugalski
At 08:18 AM 8/29/00 +1200, Christian Soeller wrote: >Dan Sugalski wrote: > > That doesn't mean that n-dimensional arrays won't be just sugar over the > > standard list-o-list structure to start, but they won't have to stay > that way. > >That seems to be a possible route. Get multi-dim syntax for

Re: RFC 94 (v2) Object Classes

2000-08-28 Thread Michael Maraist
I like a lot of what is in this RFC. It rings true for me, since my favorite CPAN modules are OO. The less I need to learn about a package, the happier I tend to be. Also, powerful objects tend to be slower (though it's getting better). I haven't seen all of the discussion reguarding this RF

Re: Nice to have it

2000-08-28 Thread Bart Lateur
On Mon, 28 Aug 2000 14:43:08 -0400 (EDT), Eric Roode wrote: >Damian Conway wrote: > >> @hash{grep /^[^_]/} >> >>gives you the public values of %hash. > > >And the advantage of that over > >@hash{ grep /^[^_]/, keys %hash } > >would be what? Brevity? What if I want those keys of %has

RE: RFC 146 (v1) Remove socket functions from core

2000-08-28 Thread Fisher Mark
>>BTW, I have access to Rational Software's Quantify (and PureCoverage and >>Purify) on WinNT and HP-UX 10.20 which I'd be glad to use for such tests. > >If you want to get "in the mood" it would be good to fire it up on >(say) perl5.6.0 and see where the hot-spots are. Planning on it as part of

Re: RFC 155 (v2) Remove mathematic and trigonomic functions from core binary

2000-08-28 Thread Stephen P. Potter
Lightning flashed, thunder crashed and Nick Ing-Simmons <[EMAIL PROTECTED]> whispered: | I think this is inappropriate for sin/cos/tan et. al. and possibly even | sockets (although Win32 sockets are weird enough that it would be worthwhile) | | But for getpw* or shm/queue/msg or other may-not-b

Re: RFC 152 (v1) Replace $self in @_ with self() builtin (not $ME)

2000-08-28 Thread Jonathan Scott Duff
On Mon, Aug 28, 2000 at 01:32:49PM -0700, Nathan Wiger wrote: > We can pick self(). Or this(). Or me(). Or context(). Or invocant(). > > Or $ME. Or $SELF. Or $THIS. Or $CONTEXT. Or $INVOCANT. > > But we have to f**king pick *something*!!! I'll just wait for Rule #1 to be exercised, personally

Re: RFC 152 (v1) Replace $self in @_ with self() builtin (not $ME)

2000-08-28 Thread Nathan Wiger
Damian Conway wrote: > > I wouldn't be averse to C as the default and C as a sop to > the Cerites and C<$ME>ophiles. But *they* might be! This is baloney. I agree, we need to *pick something*!! What should we do, make a "rename" pragma so everyone can be happy? use rename want => '$NEED', && =

Re: Beefier prototypes (was Re: Multiple for loop variables)

2000-08-28 Thread Jonathan Scott Duff
On Mon, Aug 28, 2000 at 04:04:20PM -0400, John Porter wrote: > Well, I think it's likely that the perl6 parser would be made to > handle this; but even if not, it shouldn't be too hard to get it > to allow a ref to such a list: > > for [ $x, $y, $z ] ( @list ) { ... I'm wondering how we ge

Re: Nice to have'it

2000-08-28 Thread John Porter
Damian Conway wrote: > I have a draft RFC that proposes that the LIST argument of a > grep be optional in a hash slice, and default to the key list > of the sliced hash. So: That's a waste of RFC paper, Damian. But let's generalize it a bit, and say that Perl6 should have a standard intrinsic

Re: Multiple for loop variables

2000-08-28 Thread Eric Roode
Peter Scott wrote: >Graham Barr once allowed as how he thought it would be neat if you could say > > for my($x, $y, $z) (@list) { ... } ObLanguageMinimalist: Um. Is this so frequently-used that the above syntax is preferable to: while ( ($x, $y, $z) = splice (@list, 0, 3) ) {...} ?

Re: RFC 168 (v1) Built-in functions should be functions

2000-08-28 Thread John Porter
Damian Conway wrote: >> I think it would be a good thing for user prototypes to be able to >> handle this case and I wholeheartedly support the RFC; but it opens >> a can of worms that should be addressed. Perhaps in another RFC. Do >> any other (Damian) RFCs on (Damian) prototypin

Re: RFC 152 (v1) Replace $self in @_ with self() builtin (not $ME)

2000-08-28 Thread John Siracusa
On 8/28/00 3:53 PM, Damian Conway wrote: >> Too much B&D for a Monday? > > No. I *do* have sympathy with the desire for One True Way, but *only* if the > access function is called C (my own religion ;-). > > And *that's* the problem. Yeah, there'll never be consensus on this list or in the comm

Beefier prototypes (was Re: Multiple for loop variables)

2000-08-28 Thread John Porter
Peter Scott wrote: > > for my($x, $y, $z) (@list) { ... } > ... > IANAPE (I Am Not A Parsing Expert). So I thought I would see if anyone who > was could say whether this construct would really give the parser problems > or whether looking ahead for the block will disambiguate. Well, I t

Re: RFC 155 (v2) Remove mathematic and trigonomic functions from core binary

2000-08-28 Thread Nick Ing-Simmons
Tom Christiansen <[EMAIL PROTECTED]> writes: > >Explain why things like #ifdef HAS_SETLOCALE are not sufficient for >this stated purpose. Because the source has to have something like: #ifdef HAS_SETLOCALE ... setlocale(...) ... #else #endif That does not help someone who has Locale

Re: RFC 152 (v1) Replace $self in @_ with self() builtin (not $ME )

2000-08-28 Thread Damian Conway
> I was talking about the hypothetical situation where you're (re)using or > modifying a bunch of code or classes written by different people and you > constantly have to be aware of which self-thingie to use in which file or > package or whatever. Yeah, you can just glance up to the

Re: RFC 164 (v1) Replace =~, !~, m//, and s/// with match() and subst()

2000-08-28 Thread Michael Maraist
> If you want to change STUPID behaviour that should be avoided by current > programs (such as empty regexes) fine. Simple solution. If you want to require formats such as m/.../ (which I actually think is a good idea), then make it part of -w, -W, -ww, or -WW, which would be a perl6 enhancement

Re: RFC 152 (v1) Replace $self in @_ with self() builtin (not $ME)

2000-08-28 Thread John Siracusa
On 8/28/00 3:35 PM, Damian Conway wrote: >> ...while also giving the compiler enough information to allow such >> invocant access to execute in an optimized manner...right? C'mon, >> I'm dying here thinking that all this (admittedly cool) stuff is >> gonna end up giving Perl 6 even more OO overhea

Re: RFC 152 (v1) Replace $self in @_ with self() builtin (not $ME )

2000-08-28 Thread Damian Conway
> > The use invocant was proposed as a way to maintain backwards > > compatibility and yet give everyone the invocant access syntax he > > or she personally favours. > > ...while also giving the compiler enough information to allow such > invocant access to execute in an optimize

Re: RFC 152 (v1) Replace $self in @_ with self() builtin (not $ME)

2000-08-28 Thread John Siracusa
On 8/28/00 3:09 PM, Damian Conway wrote: >> (Or, was it already intended that the implementation of 'use >> invocant' might be some sort of compile-time macro?) > > No. I think a macro facility for Perl should be more general than just > whacking some code in at the start of every subroutine. >

RE: RFC 152 (v1) Replace $self in @_ with self() builtin (not $ME )

2000-08-28 Thread Damian Conway
> What I meant to say was more along the lines of "if this could be done as a > macro, does it need to be a pragma, or could it be part of a standard macro > package?" > > And, secondly, "if this *is* part of a standard macro package, wouldn't it > be cool to let it shove arbitr

RE: RFC 152 (v1) Replace $self in @_ with self() builtin (not $ME )

2000-08-28 Thread Myers, Dirk
> > (Or, was it already intended that the implementation of 'use > > invocant' might be some sort of compile-time macro?) > No. I think a macro facility for Perl should be more general than just > whacking some code in at the start of every subroutine. Yes. I didn't phrase my comments well

RE: RFC 152 (v1) Replace $self in @_ with self() builtin (not $ME )

2000-08-28 Thread Damian Conway
> (Or, was it already intended that the implementation of 'use > invocant' might be some sort of compile-time macro?) No. I think a macro facility for Perl should be more general than just whacking some code in at the start of every subroutine. The use invocant was proposed as a way to ma

Re: RFC 168 (v1) Built-in functions should be functions

2000-08-28 Thread Damian Conway
> I think it would be a good thing for user prototypes to be able to > handle this case and I wholeheartedly support the RFC; but it opens > a can of worms that should be addressed. Perhaps in another RFC. Do > any other (Damian) RFCs on (Damian) prototyping impact (Damian) > this a

Re: Nice to have it

2000-08-28 Thread Damian Conway
> And the advantage of that over > > @hash{ grep /^[^_]/, keys %hash } > > would be what? Brevity? Yes. Damian

Re: RFC 159 (v1) True Polymorphic Objects

2000-08-28 Thread Damian Conway
> Summary: I think these should all simply break down into a single > Boolification test of some sort, as occurs already with operator > overload. Counter-summary: Although the high and low precedence binary ops could be rolled together, the current version of operator o

Re: Nice to have it

2000-08-28 Thread Eric Roode
Damian Conway wrote: >I have a draft RFC that proposes that the LIST argument of a >grep be optional in a hash slice, and default to the key list >of the sliced hash. So: > > @hash{grep /^[^_]/} > >gives you the public values of %hash. And the advantage of that over @hash{ grep /^[^

Re: RFC 126 (v2) Ensuring Perl's object-oriented future

2000-08-28 Thread John Siracusa
On 8/28/00 2:35 PM, Tom Christiansen wrote: >> Object-oriented features were added to Perl with version 5, and in many >> ways still appear somewhat "tacked on", with perhaps undue respect >> for the Old Ways of Perl 4. > > [NB: This is not a serious missive.] > > Hey, that Perl uses packages fo

Re: RFC 161 (v2) OO Integration/Migration Path

2000-08-28 Thread Dan Sugalski
At 11:28 AM 8/28/00 -0700, Steve Fink wrote: >Dan Sugalski wrote: > > > > If the vtable stuff goes into the core perl engine (and it probably will, > > barring performance issues), then what could happen in the > > > > my Foo $bar; > > > > case would be that all the vtable functions for Foo are

Re: Do we really need eq?

2000-08-28 Thread John Porter
Steve Simmons wrote: > > IMHO the code > > $a = '3.14'; # from reading a file > $b = '3.1400'; # from user input > if ($a == $b) { ... } > > should see the two args being tested in numeric context, do the numeric > casting, get floats, and do a floating compare. Durned if I know wh

Re: RFC 130 (v4) Transaction-enabled variables for Perl6

2000-08-28 Thread John Porter
Steve Fink wrote: > > "cond" for conditional? I was thinking along that line, too. But coopting "conditional" in any way is probably an ungood idea. Probly "trans" is good; it has multiple useful mnemonic values: transactional, transfer, transparent... -- John Porter We're building

Re: RFC 109 (v2) Less line noise - let's get rid of @%

2000-08-28 Thread Karl Glazebrook
My apologies for being too succinct. "lost" is a bit of an emotive word which is somewhat inaccuracte. I still believe in RFC 109 and I think I made a good case based on my own reasons. However the overwhelming majority of responses were negative, for their own very good albeit different reasons

Re: RFC 155 - Remove geometric functions from core

2000-08-28 Thread Johan Vromans
Nick Ing-Simmons <[EMAIL PROTECTED]> writes: > But if perl6 bytecode does not need to be modified to be used I'd assume that. -- Johan

Re: Nice to have'it

2000-08-28 Thread Damian Conway
> Well, $hash{/re/} would only evaluate to a single scalar. > More likely, you'd want @hash{/re/}, which would be > equivalent to @hash{ grep { /re/ } keys %hash }. I have a draft RFC that proposes that the LIST argument of a grep be optional in a hash slice, and default to the key li

Re: RFC 126 (v2) Ensuring Perl's object-oriented future

2000-08-28 Thread Tom Christiansen
>Object-oriented features were added to Perl with version 5, and in many >ways still appear somewhat "tacked on", with perhaps undue respect >for the Old Ways of Perl 4. [NB: This is not a serious missive.] Hey, that Perl uses packages for classes, subroutines for methods, and references for o

Re: RFC 110 (v3) counting matches

2000-08-28 Thread Jarkko Hietaniemi
> Which I find cute as a demonstration of the Perl's context concept, > but ugly as hell from usability viewpoint. I how to assign to an s/how/have/; $need_more_coffee++; -- $jhi++; # http://www.iki.fi/jhi/ # There is this special biologist word we use for 'stable'. # It is 'd

Re: RFC 110 (v3) counting matches

2000-08-28 Thread Jarkko Hietaniemi
On Mon, Aug 28, 2000 at 12:23:48PM -0600, Tom Christiansen wrote: > >Have you ever wanted to count the number of matches of a patten? s///g > >returns the number of matches it finds. m//g just returns 1 for matching. > >Counts can be made using s//$&/g but this is wastefull, or by putting some

Re: RFC 155 (v2) Remove mathematic and trigonomic functions from core binary

2000-08-28 Thread Tom Christiansen
>Move the mathematic functions (C, C, C) from the core >binary into a loadable module. Remove the trigonomic (C, C, >C) functions from the binary, they can already be loaded from the >Math::Trig.pm module. >=head1 DESCRIPTION >It is desirable to make the perl core binary be easy to maintain a

Re: RFC 161 (v2) OO Integration/Migration Path

2000-08-28 Thread Steve Fink
Dan Sugalski wrote: > > If the vtable stuff goes into the core perl engine (and it probably will, > barring performance issues), then what could happen in the > > my Foo $bar; > > case would be that all the vtable functions for Foo are taken as specially > named subs/methods in the Foo packag

Re: RFC 110 (v3) counting matches

2000-08-28 Thread Tom Christiansen
>Have you ever wanted to count the number of matches of a patten? s///g >returns the number of matches it finds. m//g just returns 1 for matching. >Counts can be made using s//$&/g but this is wastefull, or by putting some >counting loop round a m//g. But this all seams rather messy. It's r

Re: RFC 168 (v1) Built-in functions should be functions

2000-08-28 Thread Peter Scott
At 07:32 PM 8/27/00 +, Perl6 RFC Librarian wrote: >=head2 Prototypes > >Currently, several built-ins do not provide prototype information. > > prototype("CORE::abs") ==> ;$ > prototype("CORE::shift") ==> undef > >This must be fixed. One might even call this a bug, although the >cur

Re: RFC 110 (v3) counting matches

2000-08-28 Thread Jonathan Scott Duff
On Mon, Aug 28, 2000 at 05:40:11PM -, Perl6 RFC Librarian wrote: > =head1TITLE > > counting matches > =head1 DESCRIPTION > > Have you ever wanted to count the number of matches of a patten? s///g > returns the number of matches it finds. m//g just returns 1 for matching. > Counts

Re: RFC 109 (v2) Less line noise - let's get rid of @%

2000-08-28 Thread Jonathan Scott Duff
On Mon, Aug 28, 2000 at 05:39:20PM -, Perl6 RFC Librarian wrote: > =head1 TITLE > > Less line noise - let's get rid of @% ... > I withdrew it on 28th August as I figured I had lost the > argument! I'm sorry, but this just doesn't jive with me. There is no "argument". We are discussing pro

Re: HERE construct

2000-08-28 Thread Eric Roode
Steve Simmons wrote: >In all the straining at gnats over whitespace, filtering, etc, I have yet >to see a single proposal that isn't accomplished by just using variables >and manipulating them appropriately. And it avoids all the problems with >whitespace on the HERE word. In many cases, I agree

HERE construct

2000-08-28 Thread Steve Simmons
General comment on all the discussion of HERE docs. When HERE docs cause you a problem, don't use 'em. There is little win if any over print << HERE; Dear Sir: You owe me bucks. Pay up. Me. HERE and $msg = 'Dear Sir: You owe

RFC 126 (v2) Ensuring Perl's object-oriented future

2000-08-28 Thread Perl6 RFC Librarian
This and other RFCs are available on the web at http://dev.perl.org/rfc/ =head1 TITLE Ensuring Perl's object-oriented future =head1 VERSION Maintainer: John Siracusa <[EMAIL PROTECTED]> Date: Aug 16 2000 Last Modified: Aug 28 2000 Version: 2 Mailing List: [EMAIL PROTECTED

Multiple for loop variables

2000-08-28 Thread Peter Scott
Graham Barr once allowed as how he thought it would be neat if you could say for my($x, $y, $z) (@list) { ... } i.e., more than one loop variable, assigned successively from the list. He didn't have time to RFC it, but when I looked at it, a problem arose: if the loop variables aren't

Re: RFC 130 (v4) Transaction-enabled variables for Perl6

2000-08-28 Thread Dan Sugalski
At 12:19 PM 8/28/00 -0500, Jarkko Hietaniemi wrote: > > Or what about a variable attribute: > > > > my $x : transactional > > > > and making the effect completely lexical? Why would other scopes need to > > see such variables? > >Hear, hear! We do not want zillion and a half new keywords now that

RFC 110 (v3) counting matches

2000-08-28 Thread Perl6 RFC Librarian
This and other RFCs are available on the web at http://dev.perl.org/rfc/ =head1 TITLE counting matches =head1 VERSION Maintainer: Richard Proctor <[EMAIL PROTECTED]> Date: 16 Aug 2000 Last Modified: 28 Aug 2000 Version: 3 Mailing List: [EMAIL PROTECTE

  1   2   >