Re: Anonymous classes (was Re: Anyone actually experienced with object inheritance?)

2001-07-03 Thread Piers Cawley
Piers Cawley [EMAIL PROTECTED] writes: Michael G Schwern [EMAIL PROTECTED] writes: On Mon, Jul 02, 2001 at 04:18:31PM -0400, Michael G Schwern wrote: On Mon, Jul 02, 2001 at 12:59:51PM -0700, David Whipp wrote: Its not quite the same thing, but Java does have the concept of

Re: Anyone actually experienced with object inheritance?

2001-07-03 Thread Michael G Schwern
On Tue, Jul 03, 2001 at 12:10:19AM +0200, Bart Schuller wrote: The Apple Newton was programmed in NewtonScript, a prototype-based language. http://www.cc.gatech.edu/~schoedl/projects/NewtonScript/ seems like a nice overview. Ahh, its derived from Self. -- Michael G. Schwern [EMAIL

Good example of object inheritance's usefulness

2001-07-03 Thread Michael G Schwern
Ziggy came up with a good example of when object inheritance makes life easier. Basically, there are times when you'd want to override individual methods of individual objects. Example below. - Forwarded message from Michael G Schwern [EMAIL PROTECTED] - From: Michael G Schwern

Re: Anonymous classes (was Re: Anyone actually experienced with object inheritance?)

2001-07-03 Thread Piers Cawley
Michael G Schwern [EMAIL PROTECTED] writes: On Tue, Jul 03, 2001 at 08:34:00AM +0100, Piers Cawley wrote: my $anon = My::Anon::ObjectFactory-new({base = 'Class', method1 = sub { ... }, method2 =

Re: Anyone actually experienced with object inheritance?

2001-07-03 Thread Joe McMahon
On Tue, 3 Jul 2001, Bart Schuller wrote: The Apple Newton was programmed in NewtonScript, a prototype-based language. http://www.cc.gatech.edu/~schoedl/projects/NewtonScript/ seems like a nice overview. NewtonScript was an excellent language; with prototype-based inheritance, you could get

Re: Anonymous classes (was Re: Anyone actually experienced with object inheritance?)

2001-07-03 Thread schwern
On Tue, Jul 03, 2001 at 10:26:39AM +0100, Piers Cawley wrote: Hmm... let me write it first would you? Shouldn't be *too* hard. Suggestions for a real name for it? Class::Anonymous? Class::Anon? PS base has to take an array ref. Don't forget MI! -- Michael G Schwern [EMAIL PROTECTED]

Re: Generalizing value properties to become postits

2001-07-03 Thread Damian Conway
Simplifying somewhat (ok, a heck of a lot), an rvalued: $foo is bar or $foo : bar is syntactic sugar for: bar($foo) with some extra magic for handling a properties hash associated with $foo's value, in particular resetting

Re: Generalizing value properties to become postits

2001-07-03 Thread John Siracusa
On 7/3/01 8:14 PM, Damian Conway wrote: You lost me here. Your ideas for properties are different from mine (which may well, in turn, be different from Larry's). Anyone else get the feeling that properties are to Perl 6 what oo was to Perl 5? :) It's like we'll finally be getting the oo bit

Re: Anonymous classes (was Re: Anyone actually experienced with object inheritance?)

2001-07-03 Thread David L. Nicol
John Porter wrote: Michael G Schwern wrote: Give me data aggregation by inheritance Oooh, now that would be useful. Of course it would. That's why nearly every OO language (beside Perl) has it. package circular_list_node; ... # defines how the list_nodes do their

Re: Anonymous classes (was Re: Anyone actually experienced with object inheritance?)

2001-07-03 Thread Matt Youell
Forgive my woeful ignorance Could someone define data aggregation by inheritance? From John's original mention I thought this was some oblique MI thing, but now it's sounding like a constructor bubbling scheme, like in C++, etc. Thanks! matt youell