[Newbies] Nonstandard tools you can't live without
Hello I recently installed the Whisker Browser and am beginning to rely on it for searching through the class hierarchy. What nonstandard tools do you love to use? -- View this message in context: http://www.nabble.com/Nonstandard-tools-you-can%27t-live-without-tf4216630.html#a11996195 Sent from the Squeak - Beginners mailing list archive at Nabble.com. ___ Beginners mailing list Beginners@lists.squeakfoundation.org http://lists.squeakfoundation.org/mailman/listinfo/beginners
RE: [Newbies] delegation vs inheritance
Hello, I have to ask is Grunt your real name? Do you have a real name? Ok so your question is very vague. I'll try to answer, but I'm not sure my answer will be much help. Stack is a specialization of Object Stack has a linked list Stack normally implements linked list as a collection of StackLinks. StackLink is a specialization of Link Link has a nextLink that normally points to an instance of Link (or it's subclasses) to provide a linked list structure. Does that help? Ron -Original Message- From: gruntfuttuck First of all I must apologise if I get some terminology wrong in this post. I was rummaging around the collection classes earlier today and came across class Stack. I was interested to see that it makes use of class LinkedList through delegation with a instance variable rather than inheritance. I'm tyring to remember my Analysis and Design course here. I have a foggy memory about a is-a and has-a relationship. So a ford is-a type of Car, so that is a inheritance relationship and a Car has an engine so that is a delegation relationship. I also know that delegation is better for loose Coupling. As you can see I'm a bit vague on all this. With class Stack what would the be the likely thinking to delegate as apposed to inherit? I think this is a very impotent subject and I would like to be clearer on it. -- View this message in context: http://www.nabble.com/delegation-vs- inheritance-tf4216781.html#a11996570 Sent from the Squeak - Beginners mailing list archive at Nabble.com. ___ Beginners mailing list Beginners@lists.squeakfoundation.org http://lists.squeakfoundation.org/mailman/listinfo/beginners ___ Beginners mailing list Beginners@lists.squeakfoundation.org http://lists.squeakfoundation.org/mailman/listinfo/beginners
Re: [Newbies] delegation vs inheritance
Hi Michael, Thanks for the reply. I find it very interesting what you say but am struggling to understand it and the info in the link. I have googled forwarding vs delegation but am still confused. I think what I need to do is explore this in the morning when my brain is fresh. I know this isn't squeak specific but I would rather ask here than a PHP group! -Regards, Darren from: Michael Haupt-3 Hi, On 8/4/07, Ron Teitelbaum [EMAIL PROTECTED] wrote: I have to ask is Grunt your real name? Do you have a real name? indeed. I'd be interested to know as well. Apart from what Ron has answered, I'd like to point out that Stack does not delegate to LinkedList; what is being done there is forwarding. The difference is subtle but important in certain settings. In case Stack would delegate to LinkedList, self would be the Stack instance in all LinkedList methods invoked during Stack operations. Delegation, however, is not supported directly in Smalltalk. Instead, Stack forwards requests to LinkedList, implying that self is bound to a LinkedList instance instead of a Stack instance in all LinkedList methods invoked during Stack operations. More on this can be found on http://javalab.cs.uni-bonn.de/research/darwin/delegation.html. Best, Michael -- View this message in context: http://www.nabble.com/delegation-vs-inheritance-tf4216781.html#a11998349 Sent from the Squeak - Beginners mailing list archive at Nabble.com. ___ Beginners mailing list Beginners@lists.squeakfoundation.org http://lists.squeakfoundation.org/mailman/listinfo/beginners
[Newbies] sending text messages in and out of squeak from another application
Hi. I'm trying to create a simple chat connection between Croquet and Second Life, and it seems the most safe way to do this (to avoid leaking private IM into a Croquet island) is to simply let Squeak display the text i/o outside of Croquet. So... how do I send a message to squeak and pass one back out of squeak? This seems a fundamental thing to do, but I'm not sure how to start.. Thanks. Lawson English. ___ Beginners mailing list Beginners@lists.squeakfoundation.org http://lists.squeakfoundation.org/mailman/listinfo/beginners
RE: [Newbies] RE: delegation vs inheritance
From: Darren from: Ron Teitelbaum Does that help? Ron Thanks Ron, yes that does help but also what would be the thought process (I know you can't read minds) to choose this approach as apposed to specializing StackLink? -Regards Darren I don't understand your question. What are you trying to do or which thought process doesn't make sense? If you are trying to provide a linked list then you should use Link. If you need a stack use Stack. Have a look at the methods on each class and you can see how each class has been specialized. That should give you an idea of which class meets your needs. (If you don't find a method you need on Link, but it's on stack then use Stack) I think it would be easier if you said more about what you would like to do or what you do not understand. I'm sure someone can help explain it. I'm still not sure what piece you are having difficulty with. Welcome Darren! Ron ___ Beginners mailing list Beginners@lists.squeakfoundation.org http://lists.squeakfoundation.org/mailman/listinfo/beginners