Re: Some Apocalypse 4 exception handling questions.

2002-01-24 Thread Damian Conway
Larry wrote: > : > I strongly suspect that DbC and multimethods are, at best,. > : > orthogonal My gut level feeling is that multimethod calls look > : > like ordinary subroutine calls, and the "method" eventually > : > selected evaluates only its own PRE/POST conditions, which could > : > perhaps

Re: Some Apocalypse 4 exception handling questions.

2002-01-24 Thread Larry Wall
Garrett Goebel writes: : --_=_NextPart_001_01C1A506.D9BE78D0 : Content-Type: text/plain; : charset="iso-8859-1" : : From: Larry Wall [mailto:[EMAIL PROTECTED]] : > : > Garrett Goebel writes: : > : And this is just looking at it in the simple case. When : > : multiple-dispatch comes in

RE: Some Apocalypse 4 exception handling questions.

2002-01-24 Thread Garrett Goebel
From: Larry Wall [mailto:[EMAIL PROTECTED]] > > Garrett Goebel writes: > : And this is just looking at it in the simple case. When > : multiple-dispatch comes into the picture, then we'll > : have different invokations of the same method being > : dispatched to different implementations dependin

Re: Some Apocalypse 4 exception handling questions.

2002-01-24 Thread Jonathan Scott Duff
On Thu, Jan 24, 2002 at 10:48:45AM -0600, Garrett Goebel wrote: > When multiple-dispatch comes into the picture, then we'll have > different invokations of the same method being dispatched to different > implementations depending on the parameter list. I wonder how PRE/POST > will work once that c

Re: Apocalypse 4 : The Strange Case of the STRANGE CASE

2002-01-24 Thread Larry Wall
Peter Haworth writes: : On Wed, 23 Jan 2002 08:30:41 -0800 (PST), Larry Wall wrote: : > Andy Wardley writes: : > : Same with 'last/NEXT' - they're so similar : > : in concept that the implementation details should not matter. : > : > You mean last/LAST and next/NEXT, I suspect. But there's anoth

Re: Some Apocalypse 4 exception handling questions.

2002-01-24 Thread Larry Wall
Damien Neil writes: : On Wed, Jan 23, 2002 at 06:00:21PM -0500, Melvin Smith wrote: : > >final and private are completely different concepts as I understand : > >them. : > : > I wouldn't say "completely different". They are both used for "enforcement" : > of similar means, but you are correct, th

Re: Some Apocalypse 4 exception handling questions.

2002-01-24 Thread Larry Wall
Garrett Goebel writes: : And this is just looking at it in the simple case. When multiple-dispatch : comes into the picture, then we'll have different invokations of the same : method being dispatched to different implementations depending on the : parameter list. I wonder how PRE/POST will work o

Re: [dha@panix.com: Re: ^=~]

2002-01-24 Thread Larry Wall
=?iso-8859-1?q?Jonathan=20E.=20Paton?= writes: : > : > >Damian Conway [mailto:[EMAIL PROTECTED]] wrote: : > > : > >You *could* instead consider reversing the arguments to : > all the list : > >manipulation operators: : > > : > > @result = map @data { mapping() } : > > @result = grep @data { s

Re: Apocalypse 4 : The Strange Case of the STRANGE CASE

2002-01-24 Thread Peter Haworth
On Wed, 23 Jan 2002 08:30:41 -0800 (PST), Larry Wall wrote: > Andy Wardley writes: > : Same with 'last/NEXT' - they're so similar > : in concept that the implementation details should not matter. > > You mean last/LAST and next/NEXT, I suspect. But there's another > argument for case differentia

RE: [dha@panix.com: Re: ^=~]

2002-01-24 Thread Jonathan E. Paton
[Note: I've resent this - since apparently it never made it to the list. Can someone please complain offlist if they did get the previous one?] > > >Damian Conway [mailto:[EMAIL PROTECTED]] wrote: > > > >You *could* instead consider reversing the arguments to > all the list > >manipulation ope

RE: [dha@panix.com: Re: ^=~]

2002-01-24 Thread Jonathan E. Paton
> > >Damian Conway [mailto:[EMAIL PROTECTED]] wrote: > > > >You *could* instead consider reversing the arguments to > all the list > >manipulation operators: > > > > @result = map @data { mapping() } > > @result = grep @data { selector() }; > > @result = sort @data { comparison() }; >

Re: Some Apocalypse 4 exception handling questions.

2002-01-24 Thread Damien Neil
On Wed, Jan 23, 2002 at 06:00:21PM -0500, Melvin Smith wrote: > >final and private are completely different concepts as I understand > >them. > > I wouldn't say "completely different". They are both used for "enforcement" > of similar means, but you are correct, they are different. I view "final

Re: Apocalypse 4 : The Strange Case of the STRANGE CASE

2002-01-24 Thread Andy Wardley
On Wed, Jan 23, 2002 at 08:30:41AM -0800, Larry Wall wrote: > : INIT, DESTROY, AUTOLOAD, etc., all make sense to me. They really are > : special blocks that normally only occur once in a file. But CATCH and > : NEXT are part of normal syntax. I don't think they're any more "unusual" > : in the

RE: Some Apocalypse 4 exception handling questions.

2002-01-24 Thread David Wheeler
On Thu, 2002-01-24 at 08:48, Garrett Goebel asked: > So which Apoc will be the OO one? Apoc 12, to go by the chapters of the 3rd Camel. David -- David Wheeler AIM: dwTheory [EMAIL PROTECTED] ICQ: 15726394

RE: Some Apocalypse 4 exception handling questions.

2002-01-24 Thread Garrett Goebel
From: Garrett Goebel [mailto:[EMAIL PROTECTED]] > From: Glenn Linderman [mailto:[EMAIL PROTECTED]] > > > So maybe your point was that when you replace a method from a > > base class that you only have 1 subroutine for that method, > > the replacement one, because there wasn't really one there >

RE: Some Apocalypse 4 exception handling questions.

2002-01-24 Thread Garrett Goebel
From: Glenn Linderman [mailto:[EMAIL PROTECTED]] > > Graham Barr wrote: > > But the base class may be just an interface class. And thus > > by inheriting the pre conditions you are enforcing the API. > > So I can see a use for it, but I can also see where you > > don't want it too. > > So if th

RE: Some Apocalypse 4 exception handling questions.

2002-01-24 Thread Garrett Goebel
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > > > "Larry" == Larry Wall <[EMAIL PROTECTED]> writes: > > Larry> I think our terminology is getting sloppy here. What > Larry> do you mean by "inherit from that method"? If the > Larry> derived method overrides the base method, it will