----- Original Message ----- From: "Alex da Franca" <[EMAIL PROTECTED]> > > I don't know exactly how to test this with lingo only
You could test for this easily by simply timing how long it takes to call a function with strings of varying lengths (say, 1 char, 100 chars and 10000 chars) one function returns the string untouched, while another does something with it's local copy. You should see a dramatic difference in the timings when the string is physically copied compared with the reference passing. You should not see any difference in times for different lengths of string when passed by reference, but when passed by value, the longer strings will take more time to copy. FWIW, Delphi has used the same method you describe to pass strings since version 2, so it's fairly likely that they could have done the same thing with Lingo. - Robert [To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi To post messages to the list, email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo. Thanks!]