Re: sending value vs pointer

2001-11-13 Thread Etienne Marcotte
well thanks for the explanation.. I asked because we saw pointer in my last C class (buy the way I hate ANSI C).. and was wondering, when sending an array of let's say 6 strings, if it would be faster to send the adress of this array, kind of like we do in C by using pointers. Then the sub can m

Re: sending value vs pointer

2001-11-13 Thread Curtis Poe
--- Etienne Marcotte <[EMAIL PROTECTED]> wrote: > This is a very newbie question.. > > When sending arguments to a sub, is it preferable to send a pointer to > this value or the value itself. Or after x arguments it's better to send > references? > > Etienne Etienne, I think Brett W. McCoy gav

Re: sending value vs pointer

2001-11-13 Thread Brett W. McCoy
On Tue, 13 Nov 2001, Etienne Marcotte wrote: > When sending arguments to a sub, is it preferable to send a pointer to > this value or the value itself. Or after x arguments it's better to send > references? It all depends on what the function is doing. For complex data structures, references ar

sending value vs pointer

2001-11-13 Thread Etienne Marcotte
This is a very newbie question.. When sending arguments to a sub, is it preferable to send a pointer to this value or the value itself. Or after x arguments it's better to send references? Etienne -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]