[JDEV] A thought on modularity

Thomas D. Charron tcharron at my-deja.com
Mon Aug 9 11:04:01 CDT 1999

  Would be better to pass it a pointer to parameters,
but that's only my opinion..  This would also allow
you to add things to the struct later without breaking
the older transports that may not care..  (Well, beyond
a recompile for the new struct def..)

Thomas Charron

On Mon, 9 Aug 1999 00:37:14    Anders Qvist wrote:
>Just had a look at mod_basic and had a thought. All the callback
>functions gets a pile of parameters to handle. Wouldn't it be better
>if they got a fat struct instead? Apart from making the function def
>shorter, it would also mean that the list of stuff that gets sent to
>the callback can be added to without breaking older code.

--== Sent via Deja.com http://www.deja.com/ ==--
Share what you know. Learn what you don't.

More information about the JDev mailing list