grab-bag questions (was Re: A6 questions)

2003-03-24 Thread David Storrs
; just get pissed off with the whole affair and fail to do a good job of > summarizing. Also, if you split the questions up into multiple posts, > you have the opportunity to help me (and all other readers) still > further by coming up with meaningful subject lines for each > question.

Re: A6 questions

2003-03-24 Thread Piers Cawley
g up with meaningful subject lines for each question. Trust me, 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 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

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 m