Re: Object instantiation

2003-10-21 Thread Jeff Clites
On Oct 21, 2003, at 7:14 AM, Dan Sugalski wrote: After thinking about this a bit, it became glaringly obvious that the right way to instantiate an object for class "Foo" is to do: new P5, .Foo Or whatever the constant value assigned to the Foo class upon its creation is. When a class is create

Re: Object instantiation

2003-10-21 Thread Melvin Smith
M Please respond to lt To: [EMAIL PROTECTED] (Dan Sugalski) cc: [EMAIL PROTECTED] Subject:Re: Object instantiation Dan Sugalski <[EMAIL PROTECTED]> wrote: > After thinking about this a bit, it became glaringly obvious that the > right way t

Re: Object instantiation

2003-10-21 Thread Dan Sugalski
On Tue, 21 Oct 2003, Leopold Toetsch wrote: > Dan Sugalski <[EMAIL PROTECTED]> wrote: > > After thinking about this a bit, it became glaringly obvious that the > > right way to instantiate an object for class "Foo" is to do: > > > new P5, .Foo > > > Or whatever the constant value assigned to the

Re: Object instantiation

2003-10-21 Thread Leopold Toetsch
Dan Sugalski <[EMAIL PROTECTED]> wrote: > After thinking about this a bit, it became glaringly obvious that the > right way to instantiate an object for class "Foo" is to do: > new P5, .Foo > Or whatever the constant value assigned to the Foo class upon its creation > is. When a class is create

Re: Object Instantiation

2002-10-15 Thread Peter Haworth
On Fri, 11 Oct 2002 14:05:30 -0700, Michael Lazzaro wrote: > Maybe postfix ! on a class name means to autoinstantiate an object of > the named class only if/when first accessed: > > our FancyCache $cache; # declare, but leave undef > our FancyCache! $cache;

Re: Object Instantiation

2002-10-11 Thread Michael Lazzaro
On Thursday, October 10, 2002, at 05:11 PM, Larry Wall wrote: my MyClass $obj = .new; my new MyClass $obj; Thanks for the clarification. I like those two OK, personally. If I were chained to one of those, I wouldn't chew my leg off. Tying it together with the other thread to mak

Re: Object Instantiation (Was: Re: [ANNOUNCE] Perl6 OO Cookbook, v0.1)

2002-10-10 Thread Larry Wall
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