On Sat, May 29, 2004 at 04:59:10PM +1000, skaller wrote:
> On Sat, 2004-05-29 at 10:21, Bardur Arantsson wrote:
> > On Fri, May 28, 2004 at 04:19:43PM -0500, Brian Hurt wrote:
>
> > To my mind it seems pretty clear that using the non-OO
> > approach is a dead end because there are all these
> > tradeoffs to consider
>
> [Class factorisation exhibited]
>
> Why can't this also be done with functors,
> modules, and constraints?
>
> It may be harder to write the code than using classes,
> but is it possible? Is there anything with classes
> that you cant do here with functors, if so what?
Actually, I have no idea. :) I haven't really dabbled with
the whole functor/constraints thing... I just thought
classes were an obvious way to implement this. :)
--
Bardur Arantsson
<bardur@xxxxxxxxxxxx>
<bardur@xxxxxxxxxxxxxxx>
- A poignant plea, sir. Enough to melt the stoniest of hearts,
but the answer, I'm afraid, must remain, "You're going to die,
fat pig".
Edmund Blackadder | Blackadder III
-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g.
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
|