Re: PDD 2: sample add()

2001-02-16 Thread David Mitchell
Ken Fox <[EMAIL PROTECTED]> wrote: > David Mitchell wrote: > > To get my head round PDD 2, I've just written the the outline > > for the body of the add() method for a hypophetical integer PMC class: > > [... lots of complex code ...] > > I think this example is a good reason to consider only ha

Re: PDD 2: sample add()

2001-02-15 Thread Ken Fox
David Mitchell wrote: > To get my head round PDD 2, I've just written the the outline > for the body of the add() method for a hypophetical integer PMC class: [... lots of complex code ...] I think this example is a good reason to consider only having one argument math ops. Instead of dst->add(a

PDD 2: sample add()

2001-02-15 Thread David Mitchell
To get my head round PDD 2, I've just written the the outline for the body of the add() method for a hypophetical integer PMC class: chiefly to get a feel for how it needs to handle all the various permutations, like whether the destination pmc is trashable etc. Could you Wise Ones tell me whethe