Re: [Tutor] class overriding question

2004-12-20 Thread Brian van den Broek
Alan Gauld said unto the world upon 2004-12-20 15:51: I hope that short history of OOP clarifies rather than confuses! :-) Alan G. Thanks for that Alan. Seems to clarify thing to me ;-) Best, Brian vdB ___ Tutor maillist - [EMAIL PROTECTED] http://mail

Re: [Tutor] class overriding question

2004-12-20 Thread Alan Gauld
> > Its another reason why you should never refer to > > an object or method *calling* another method > > (as Pilgrim does). Rather think of the method > > sending a *message* to the self object which > > invokes the appropriate method. > The contrast you suggest between calling a method and sendi

Re: [Tutor] class overriding question

2004-12-20 Thread Brian van den Broek
Alan Gauld said unto the world upon 2004-12-20 09:27: Its another reason why you should never refer to an object or method *calling* another method (as Pilgrim does). Rather think of the method sending a *message* to the self object which invokes the appropriate method. This decoupling of message

Re: [Tutor] class overriding question

2004-12-20 Thread Alan Gauld
y. Alan G. - Original Message - From: "Brian van den Broek" <[EMAIL PROTECTED]> To: "Tutor" <[EMAIL PROTECTED]> Sent: Saturday, December 18, 2004 1:31 PM Subject: [Tutor] class overriding question > Hi all, > > instead of sleeping, I've been up all

Re: [Tutor] class overriding question

2004-12-18 Thread Brian van den Broek
Kent Johnson said unto the world upon 2004-12-18 08:53: Yup, that's right! Attribute access (the dot operator '.') is an operation that happens at runtime, and each attribute access stands alone. Every attribute access goes through the same search path, starting with self, then the class (type)

Re: [Tutor] class overriding question

2004-12-18 Thread Kent Johnson
Yup, that's right! Attribute access (the dot operator '.') is an operation that happens at runtime, and each attribute access stands alone. Every attribute access goes through the same search path, starting with self, then the class (type) of self, finally the base classes. So, in your example, s

[Tutor] class overriding question

2004-12-18 Thread Brian van den Broek
Hi all, instead of sleeping, I've been up all night finally attacking my apprehension about classes. I think I'm mostly getting the hang of it -- I managed to convert a 300 line procedural script into (what I think is) a fully object-oriented approach. :-) I made a lot of use of Mark Pilgrim's Di