RFC - Interpolation of method calls

2000-09-14 Thread Michael G Schwern
=head1 TITLE Interpolation of method calls =head1 VERSION Maintainer: Michael G Schwern <[EMAIL PROTECTED]> Date: 14 Sep 2000 Version:1 Mailing List: [EMAIL PROTECTED] =head1 ABSTRACT Method calls should interpolate in double-quoted strings, and similar locations.

Re: RFC - Interpolation of method calls

2000-09-14 Thread Michael Fowler
This topic is actually covered, albeit far less in-depth and lumped with an unrelated change, by Nathan Wiger's RFC 103, just in case you weren't aware. On Thu, Sep 14, 2000 at 03:57:41AM -0400, Michael G Schwern wrote: > Methods will be run in scalar context. A method which returns a single sc

Re: Draft RFC: new pragma: C

2000-09-14 Thread Graham Barr
I would suggest that anyone want to contribute to this discussion should first read the thread about the addition of this pragma to perl5 in the perl5-porters archives http://www.xray.mpe.mpg.de/cgi-bin/w3glimpse/perl5-porters?query=use+namespace+pragma&errors=0&case=on&maxfiles=100&maxlines=30

Re: Draft RFC: new pragma: C

2000-09-14 Thread Piers Cawley
Graham Barr <[EMAIL PROTECTED]> writes: > I would suggest that anyone want to contribute to this discussion should > first read the thread about the addition of this pragma to perl5 in > the perl5-porters archives > > >http://www.xray.mpe.mpg.de/cgi-bin/w3glimpse/perl5-porters?query=use+namespa

Re: RFC 218 (v1) C is just an assertion

2000-09-14 Thread Piers Cawley
Perl6 RFC Librarian <[EMAIL PROTECTED]> writes: > This and other RFCs are available on the web at > http://dev.perl.org/rfc/ > > =head1 TITLE > > C is just an assertion > > =head1 VERSION > > Maintainer: Piers Cawley <[EMAIL PROTECTED]> > Date: 13th September 2000 > Mailing List: [EMA

Re: RFC 218 (v1) C is just an assertion

2000-09-14 Thread Piers Cawley
Nathan Torkington <[EMAIL PROTECTED]> writes: > Perl6 RFC Librarian writes: > > I therefore propose that C comes to mean that C<$spot> > > is restricted to being either undefined or a reference to a C > > object (or any subclasses of Dog). Simply having this implicit > > assertion can be useful t

Re: RFC 218 (v1) C is just an assertion

2000-09-14 Thread Piers Cawley
Nathan Wiger <[EMAIL PROTECTED]> writes: > Nathan Torkington wrote: > > > > Yes! I mentioned the hypothetical > > use strict 'types'; > > which would require all variables assigned to/from an object, and > > all variables upon which method calls are made, to be typed like > > this. Then the

Re: RFC 218 (v1) C is just an assertion

2000-09-14 Thread Piers Cawley
Michael G Schwern <[EMAIL PROTECTED]> writes: > On Wed, Sep 13, 2000 at 08:43:43PM -, Perl6 RFC Librarian wrote: > > The behaviour of the syntax should simply be an > > assertion of the invariant: > > > >(!defined($spot) || (ref($spot) && $spot->isa('Dog))) > > What about the current

Re: RFC - Interpolation of method calls

2000-09-14 Thread Nathan Wiger
> This topic is actually covered, albeit far less in-depth and lumped with an > unrelated change, by Nathan Wiger's RFC 103, just in case you weren't aware. Yeah, I've got to split those up. I was trying cut down on the flood of RFC's that poor Larry has to sift through :-(, but they are both com

Re: Draft RFC: new pragma: C

2000-09-14 Thread Nathan Wiger
Nathan Wiger wrote: > > > use namespace 'Big::Long::Prefix'; > > my ::Class $object = ::Class->new; > > Assuming repairing :: precedence is a reality I don't think this > proposal buys us anything. ...That being said, I'm not necessarily against it. I'm just against bloat. I hadn't paid

Re: RFC - Interpolation of method calls

2000-09-14 Thread Nick Ing-Simmons
Michael G Schwern <[EMAIL PROTECTED]> writes: > >print "Today's weather will be $weather->temp degrees and sunny."; > >This does not DWIM. Instead of interpolating C<$weather->temp> as a method >call, it comes out as C<$weather.'->temp'> and is usually followed immediately >by the questio

Re: RFC 218 (v1) C is just an assertion

2000-09-14 Thread Nathan Torkington
Piers Cawley writes: > TBH, I'm not sure I want to go too far down that road in this RFC. And > tbh they seem more like internals issues to me. The runtime behaviour > this change grants is good enough for me and I don't want to see the > proposal bogged down in flamage about strict types. Of cour

Re: RFC - Interpolation of method calls

2000-09-14 Thread Michael Fowler
On Thu, Sep 14, 2000 at 07:49:32AM -0700, Nathan Wiger wrote: > > > print 'Today\'s weather will be '.join($", $weather->temp()). > > > ' degrees and sunny.'; > > > > > > However if temp() calls wantarray(), the result will be FALSE (scalar). > > I think what he's trying to get at i

RFC 49 (v3) Objects should have builtin stringifying STRING method

2000-09-14 Thread Perl6 RFC Librarian
This and other RFCs are available on the web at http://dev.perl.org/rfc/ =head1 TITLE Objects should have builtin stringifying STRING method =head1 VERSION Maintainer: Nathan Wiger <[EMAIL PROTECTED]> Date: 06 Aug 2000 Last Modified: 14 Sep 2000 Mailing List: [EMAIL PROTECTED]

Re: RFC 218 (v1) C is just an assertion

2000-09-14 Thread Michael G Schwern
On Thu, Sep 14, 2000 at 02:19:38PM +0100, Piers Cawley wrote: > Michael G Schwern <[EMAIL PROTECTED]> writes: > > package Dog; > > use fields qw(this night up); > > > > my Dog $ph = []; > > $ph->{this} = "that"; > > That works? I thought you had to do: > > my Dog $self = f

RFC 222 (v1) Interpolation of method calls

2000-09-14 Thread Perl6 RFC Librarian
This and other RFCs are available on the web at http://dev.perl.org/rfc/ =head1 TITLE Interpolation of method calls =head1 VERSION Maintainer: Michael G Schwern <[EMAIL PROTECTED]> Date: 14 Sep 2000 Mailing List: [EMAIL PROTECTED] Number: 222 Version: 1 Status: Developing =head

Re: RFC 222 (v1) Interpolation of method calls

2000-09-14 Thread Dave Rolsky
First of all, I think this is a great idea On 14 Sep 2000, Perl6 RFC Librarian wrote: > Are there any contexts besides double quotes ("", qq{}, <<"EOF") where this > need be applied? What about inside regexes? And if so, left and/or right > hand side? Regexes are enough like double quoted str

RFC 189 (v2) Objects : Hierarchical calls to initializers and destructors

2000-09-14 Thread Perl6 RFC Librarian
This and other RFCs are available on the web at http://dev.perl.org/rfc/ =head1 TITLE Objects : Hierarchical calls to initializers and destructors =head1 VERSION Maintainer: Damian Conway <[EMAIL PROTECTED]> Date: 1 September 2000 Mailing List: [EMAIL PROTECTED] Number: 189 Version

RFC 224 (v1) Objects : Rationalizing C, C, and C

2000-09-14 Thread Perl6 RFC Librarian
This and other RFCs are available on the web at http://dev.perl.org/rfc/ =head1 TITLE Objects : Rationalizing C, C, and C =head1 VERSION Maintainer: Damian Conway <[EMAIL PROTECTED]> Date: 14 September 2000 Mailing List: [EMAIL PROTECTED] Number: 224 Version: 1 Status: Developing

Re: RFC 218 (v1) C is just an assertion

2000-09-14 Thread Damian Conway
Piers wrote: > I'm kind of tempted to look at adding another pragma to go with 'use > base' along the lines of: > > use implements 'Interface'; > > Which is almost entirely like C but with > 'Interface' consisting of nothing but: > > > package Interfac

Re: RFC 218 (v1) C is just an assertion

2000-09-14 Thread Buddha Buck
At 08:13 AM 9/15/00 +1100, Damian Conway wrote: >Piers wrote: > >> I'm kind of tempted to look at adding another pragma to go with 'use >> base' along the lines of: >> >> use implements 'Interface'; >> >> Which is almost entirely like C but with >> 'Interface' cons

Re: RFC 222 (v1) Interpolation of method calls

2000-09-14 Thread David L. Nicol
> > Method calls should interpolate in double-quoted strings, and similar > locations. > > print "Today's weather will be $weather->temp degrees and sunny."; A possibility that does not appear in RFC222.1 is to put tho whole accessor expression inside curlies: print "Today's weath

Re: RFC 222 (v1) Interpolation of method calls

2000-09-14 Thread Michael Fowler
On Thu, Sep 14, 2000 at 06:37:22PM -0500, David L. Nicol wrote: > A possibility that does not appear in RFC222.1 is to put tho whole > accessor expression inside curlies: > > print "Today's weather will be ${weather->temp} degrees and sunny."; > > which would follow the "You want something

Re: RFC 189 (v2) Objects : Hierarchical calls to initializers and destructors

2000-09-14 Thread Nathan Wiger
> =head2 The C method > =head3 The C method Hey! You left out the alternative names NEW / RENEW and BLESS / REBLESS that we all like! :-( -Nate

Re: RFC 189 (v2) Objects : Hierarchical calls to initializers and destructors

2000-09-14 Thread Damian Conway
> > =head2 The C method > > =head3 The C method > > Hey! You left out the alternative names NEW / RENEW and BLESS / REBLESS > that we all like! :-( Oops. You're correct. I will rectify that. Damian

RFC 222 (v1) Interpolation of method calls

2000-09-14 Thread Perl6 RFC Librarian
This and other RFCs are available on the web at http://dev.perl.org/rfc/ =head1 TITLE Interpolation of method calls =head1 VERSION Maintainer: Michael G Schwern <[EMAIL PROTECTED]> Date: 14 Sep 2000 Mailing List: [EMAIL PROTECTED] Number: 222 Version: 1 Status: Developing =head