Re: classes, interfaces, properties and 'is'

2002-04-06 Thread Damian Conway
Melvin Smith wrote: > I see the potential for another Perl 'non-warning' bug, where > someone typed: > > class Appliance { > ...mucho lines of code... > } > > class Toaster is appliance { > ... > } That's probably an "Undefined property 'appliance' ascribed to class Toaster" error. > It sca

Re: classes, interfaces, properties and 'is'

2002-04-05 Thread Larry Wall
Melvin Smith writes: : At 07:12 AM 4/5/2002 +1000, Damian Conway wrote: : >Melvin Smith wrote: : >More generally, it also depends whether you think of out-of-band properties as : >nouns or adjectives. For example: : > : > class Toaster is silver is shiny is hot is little {...} : > : >vs: :

Re: classes, interfaces, properties and 'is'

2002-04-05 Thread Melvin Smith
At 07:12 AM 4/5/2002 +1000, Damian Conway wrote: >Melvin Smith wrote: >More generally, it also depends whether you think of out-of-band properties as >nouns or adjectives. For example: > > class Toaster is silver is shiny is hot is little {...} > >vs: After rereading the example, this one

Re: classes, interfaces, properties and 'is'

2002-04-04 Thread Melvin Smith
At 07:12 AM 4/5/2002 +1000, Damian Conway wrote: >Melvin Smith wrote: > > > 1) In Perl6 we can tag metadata properties to an object using the 'is' > keyword. > >Err, no. We can add properties to a *class* using C. >To tag objects (which are run-time phenomena) we'd use C. Oops, ok this was my mi

Re: classes, interfaces, properties and 'is'

2002-04-04 Thread Damian Conway
Melvin Smith wrote: > 1) In Perl6 we can tag metadata properties to an object using the 'is' keyword. Err, no. We can add properties to a *class* using C. To tag objects (which are run-time phenomena) we'd use C. > 2) Also, in Perl6 we can derive a new class from an ancestor using 'is'. Corre

classes, interfaces, properties and 'is'

2002-04-04 Thread Melvin Smith
Reading Apoc and Exeg 4 I liked most everything. It has already been said many times how Perl6 is finally getting features the OO guys have been wanting forever, so I won't state the obvious again, but I would like to propose an alternate keyword... 1) In Perl6 we can tag metadata properties to a