>>>>> "Andre" == Andre Poenitz <[EMAIL PROTECTED]> writes:

Andre> If you have functions requiring a lot of parameters or if you
Andre> are not sure whether you need to change the signature soon you
Andre> simply put all (or at least the 'instable' args) in a structure
Andre> and pass down a (possibly const) reference to such a structure.

Andre> If you need another int to be passed, add it to the struct and
Andre> recompile. No need to edit everything.

And then you have to make sure that all the fileds of the structures
are correctly initialized whenever a method want to use one of them.
Maybe at some point where you want to call an inset method, you do not
known the Buffer. What are you going to do? Set it to null and hope
nobody will be using it? Try to aquire its value although nonbody may
want to use it?

JMarc

Reply via email to