[EMAIL PROTECTED] wrote:
: class Dog {
: method tail { brown and short }
: };
:
: class Chihuahua is Dog {
: has $.color;
: method tail { $.color _ and short }
: };
:
: You can say Dog.tail, Dog.new.tail, Chihuahua.new.tail, but not
: Chihuahua.tail. That's extremely
On 1/19/06, Matt Fowles [EMAIL PROTECTED] wrote:
Could you provide a concrete example of the advantage of this approach
please? Failing that can you try and expand on your gut feeling a
bit?
May or may not be of use, but Larry's view sounds a bit like reconcilling the
(again considered
On 1/18/06, Audrey Tang (autrijus) [EMAIL PROTECTED] wrote:
http://cakoose.com/wiki/type_system_terminology#13
Any practical programming language with structural subtyping will
probably let you create and use aliases for type names (so you don't
have to write the full form everywhere). However,
Rob Kinyon wrote:
Any practical programming language with structural subtyping will
probably let you create and use aliases for type names (so you don't
have to write the full form everywhere). However, the underlying type
system will only consider the structure of the type when doing its
On Thursday 19 January 2006 06:48, Rob Kinyon wrote:
Any practical programming language with structural subtyping will
probably let you create and use aliases for type names (so you don't
have to write the full form everywhere). However, the underlying type
system will only consider the
Today on #perl6, Audrey, Stevan and I were talking about $repr. A
tangent arose where Audrey said that the difference between class
methods and instance methods was simply whether or not the body
contained an attribute access.
Is this true? If it is, then I think it violates polymorphism as
On Wed, Jan 18, 2006 at 01:56:53PM -0500, Rob Kinyon wrote:
: Today on #perl6, Audrey, Stevan and I were talking about $repr. A
: tangent arose where Audrey said that the difference between class
: methods and instance methods was simply whether or not the body
: contained an attribute access.
:
Larry~
On 1/18/06, Larry Wall [EMAIL PROTECTED] wrote:
But I have a strong gut-feeling that over the long term it's going to
be important to be able to view a given object as either a partially
instantiated class or a partially undefined object, and for that we have
to break down the false
On 1/18/06, Larry Wall [EMAIL PROTECTED] wrote:
On Wed, Jan 18, 2006 at 01:56:53PM -0500, Rob Kinyon wrote:
: Today on #perl6, Audrey, Stevan and I were talking about $repr. A
: tangent arose where Audrey said that the difference between class
: methods and instance methods was simply whether