Damian Conway <[EMAIL PROTECTED]> writes:
> Errr. I would imagine that $ME contains:
>
> * a reference to the object, within an object method
>
> * the name of the class, within a class method
>
> * a reference to the *subroutine* itself, within a non-method.
Ooh, recursive a
Damian Conway wrote:
> And don't forget to include my idea that $ME be scoped locally like
> $AUTOLOAD, so that the "self" and "this" and "I" and "myself" camps can
> have their respective cakes but the rest of us don't have to eat them:
Given
1: full access to the "behind-the-scenes"
This and other RFCs are available on the web at
http://dev.perl.org/rfc/
=head1 TITLE
Overview: Perl OO should I be fundamentally changed.
=head1 VERSION
Maintainer: Damian Conway <[EMAIL PROTECTED]>
Date: 21 August 2000
Version: 1
Mailing List: [EMAIL PROTECTED]
Number: 137
=head
-Original Message-
From: Damian Conway [mailto:[EMAIL PROTECTED]]
And don't forget to include my idea that $ME be scoped locally like
$AUTOLOAD, so that the "self" and "this" and "I" and "myself" camps can
have their respective cakes but the rest of us don't have to eat them:
[...]
--On 18.08.2000 14:36 Uhr -0700 David L. Nicol wrote:
> How about backslash, after the type-qualifier?
>
> use %record{
>
> $\interest_earned += $\balance * $\rate_daily;
> };
I don't really like having backslashes in front of ordinary characters
anywhere except when I mean them :-) (\n,
> "PRL" == Perl6 RFC Librarian <[EMAIL PROTECTED]> writes:
PRL> A C keyword that lexically scopes hash keys to the current
PRL> package, and allows hashes to contain two or more identically named (but
PRL> differently scoped) entries. This would solve the problem of
PRL> encapsulation
Markus Peter writes:
> > use %record{
> >
> > $\interest_earned += $\balance * $\rate_daily;
> > };
Guys, where in the sweet name of Jesus did this awful syntax
come from?
For a start,
%start{ }
is only analogous to a slice operation. It has no precedent in
Perl.
Normally what
Uri wrote:
> PRL> A C keyword that lexically scopes hash keys to the
> PRL> current package, and allows hashes to contain two or more
> PRL> identically named (but differently scoped) entries. This
> PRL> would solve the problem of encapsulation in OO Perl for the
> PRL>