Re: [Ohrrpgce] Question for Mike about HeroDef

2007-07-20 Thread Mike Caron
On 7/20/07, Adam Perry <[EMAIL PROTECTED]> wrote: > I... don't think that's the purpose of pointers. What? A pointer shunts responsibility for a chunk of memory from the callee to the caller (or, vice versa, for a return value). This implies, strongly, that the callee will be modifying the content

Re: [Ohrrpgce] Question for Mike about HeroDef

2007-07-20 Thread James Paige
On Fri, Jul 20, 2007 at 05:00:33PM -0500, Mike Caron wrote: > On 7/20/07, James Paige <[EMAIL PROTECTED]> wrote: > > Hey, Mike. I noticed that DeSerHeroDef and SerHeroDef expect a herodef > > ptr rather than just taking a herodef as an argument. Why is this? If > > the herodef object was passed by

Re: [Ohrrpgce] Question for Mike about HeroDef

2007-07-20 Thread Adam Perry
I... don't think that's the purpose of pointers. On 7/20/07, Mike Caron <[EMAIL PROTECTED]> wrote: On 7/20/07, James Paige <[EMAIL PROTECTED]> wrote: > Hey, Mike. I noticed that DeSerHeroDef and SerHeroDef expect a herodef > ptr rather than just taking a herodef as an argument. Why is this? If

Re: [Ohrrpgce] Question for Mike about HeroDef

2007-07-20 Thread Mike Caron
On 7/20/07, James Paige <[EMAIL PROTECTED]> wrote: > Hey, Mike. I noticed that DeSerHeroDef and SerHeroDef expect a herodef > ptr rather than just taking a herodef as an argument. Why is this? If > the herodef object was passed by value (copied) I would understand the > need for using pointers, but

[Ohrrpgce] Question for Mike about HeroDef

2007-07-20 Thread James Paige
Hey, Mike. I noticed that DeSerHeroDef and SerHeroDef expect a herodef ptr rather than just taking a herodef as an argument. Why is this? If the herodef object was passed by value (copied) I would understand the need for using pointers, but I was under the impression that objects are passed by