[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] Coding style



Thanks Chris and Raffael for your answers.

Ė (At) 10:47 -0500 04/02/99, Chris Nandor ˇcrivait (wrote) :
>At 08.26 -0500 1999.02.04, Emmanuel. M. Decarie wrote:
>>myFunc(\@global);
>>
>>or
>>
>>@global = myFunc(\@global);
>
>The problem is that the latter is slower.  Readability is good, but if
>@global is sufficiently large, it can be quite slow.  Frankly, though, I
>have no problem with the first one insofar as readability goes.  I would
>look at the latter and say "why?".

Ok, just to be sure, I guess the second way is slower because myFunc is reassigning the value to @global ? 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Emmanuel M. Dˇcarie - <emm@cam.org>
---> The Frontier Newbie Toolbox:
<http://www.cam.org/~emm/frontierNewbieToolbox.html>
---> Frontier en fran¨ais ! 
<http://www.scripting.com/frontier5/francais/>
<http://www.scriptmeridian.org/tutorials/francais/odb/>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch