grab-bag questions (was Re: A6 questions)

2003-03-24 Thread David Storrs
Piers, Apologies...I actually put them into one mail deliberately, because I didn't want to burn more mindspace than necessary...people could skim all my questions at once, answer those they were interested in, and be done. I didn't think about how this would impact the summaries. In future, I'll

Re: A6 questions

2003-03-24 Thread Piers Cawley
David Storrs <[EMAIL PROTECTED]> writes: > 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:

Re: A6 questions

2003-03-17 Thread Matthijs van Duin
On Mon, Mar 17, 2003 at 10:52:26AM -0800, David Storrs wrote: sub identifier {m{ <[\w]-[\d]> \w+ }} rule identifier { <[\w]-[\d]> \w } I personally don't see a lot of difference between those two, but I'll go with you on the "helps people know that $match should be a regex" point. Good eno

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-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() { >

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?

Re: A6 questions

2003-03-17 Thread Marco Baringer
Chris Dutton <[EMAIL PROTECTED]> writes: > 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

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 P