Re: A6 questions

2003-03-24 Thread Piers Cawley
, a subject line of 'is static?' is way more useful to the reader than 'A6 Questions' or 'Apoc 5 - some issues'. Also, if you avoid 'grab bag' posts, you'll probably see more attention given to your individual questions. Make my life easier, go on, you know you all want to. -- Piers

Re: A6 questions

2003-03-17 Thread David Storrs
On Sun, Mar 16, 2003 at 10:08:41PM -0500, Chris Dutton wrote: On Sunday, March 16, 2003, at 05:09 PM, David Storrs wrote: ==QUESTION - Page 8 says In some languages, all methods are multimethods. I believe that Java is one of these. Is that right and what are some others? (This is

Re: A6 questions

2003-03-17 Thread Luke Palmer
==QUESTION - Given the following code, what is called by $ride.current_speed()? class Vehicle { my $speed; method current_speed() { return $speed; } method set_speed($n) { $speed = $n; } } class Car { submethod current_speed() { print

Re: A6 questions

2003-03-17 Thread David Storrs
On Mon, Mar 17, 2003 at 10:56:51AM -0700, Luke Palmer wrote: Assuming the obvious inheritance, Vehicle.set_speed() would be called. Ok good, that's what I thought. Thanks. No. Rules fit better in a grammar than subs, and help the psychology of people in various ways. For instance:

Re: A6 questions

2003-03-16 Thread Chris Dutton
On Sunday, March 16, 2003, at 05:09 PM, David Storrs wrote: ==QUESTION - Page 8 says In some languages, all methods are multimethods. I believe that Java is one of these. Is that right and what are some others? (This is really just curiousity.) ==/ Doesn't C++ work this way? Also I believe

A6 questions

2003-03-16 Thread David Storrs
Greetings all, Ok, it took me several days to get through A6, and I'm not caught up on all the mail yet (though I've tried to skim so I don't repeat someone else's question). I'm left with a bunch of questions; can anyone answer the following: ==QUESTION - Page 8 says In some languages, all