On Wed, 9 Oct 2002, Chris Dutton wrote:
: Wasn't "class MyClass;" supposed to work along the line of Perl5's
: "package MyClass;" and make everything following that statement the
: definition of MyClass?
Yes, though we're thinking of limiting that construct to the front
of a file, along with "m
On Thu, 10 Oct 2002, Michael Lazzaro wrote:
: On Thursday, October 10, 2002, at 11:23 AM, John Williams wrote:
: > my $obj = MyClass(...);
: >
: > This seems to assume that objects have a default method if you treat
: > them
: > like a subroutine. Kinda tcl-ish, but I don't recall anything li
On Thursday, October 10, 2002, at 11:23 AM, John Williams wrote:
> my $obj = MyClass(...);
>
> This seems to assume that objects have a default method if you treat
> them
> like a subroutine. Kinda tcl-ish, but I don't recall anything like
> this
> in the apocalypes.
>
> my $obj = MyClass;
On Wed, 9 Oct 2002, Michael Lazzaro wrote:
> PLEASE contribute to this document! Email me with suggestions, "yes"
> or "no" votes on recipe approaches, info on philosophies or best-guess
> syntax, etc., or discuss them here on perl6-language.
Very nice. I hope this evolves into a useful perl6
On Thursday, October 10, 2002, at 02:33 AM, Angel Faus wrote:
> Just a silly note:
>> Recipe 1.9: Using Subroutines as Objects
> I think it was said that the way to avoid the ambiguity here is to add
> & to sub name.
Thanks, applied.
MikeL
On Wednesday, October 9, 2002, at 07:54 PM, Chris Dutton wrote:
> One first thing I notice while I'm supposed to be doing homework. :-)
>
> Wasn't "class MyClass;" supposed to work along the line of Perl5's
> "package MyClass;" and make everything following that statement the
> definition of
Hi,
Many thanks Michael, this is very useful, really. I had lost all the
OO discussion and this document is very helpful.
I really like the part of context transformations, I hope something
like this gets in.
Just a silly note:
> Recipe 1.9: Using Subroutines as Objects
>
> Problem:
> You w
One first thing I notice while I'm supposed to be doing homework. :-)
Wasn't "class MyClass;" supposed to work along the line of Perl5's
"package MyClass;" and make everything following that statement the
definition of MyClass?
Yes, you heard right. A cookbook describing stuff that hasn't yet been
designed, for a language that doesn't yet exist. Having flashbacks to
your college years, anyone?
The purpose of the Cookbook is to foster discussion on perl6 OO
concepts, and to start documenting the decisions that are