implicitVars [Was: Re: Best Practices in Rev development]

Jim Ault JimAultWins at yahoo.com
Fri Jun 29 18:33:16 EDT 2007


On 6/29/07 3:23 PM, "David Bovill" <david at openpartnership.net> wrote:

> function countLines someLines
>     put empty into someLines
>     repeat for each line someLine in someLines
>       add 1 to lineCount
>     end repeat
>     return lineCount
> end countLines

I am a bit confused.. why would you pass a param then set it to empty?
or establish the param and declare it as a local, as you do later?

What is the benefit?

Jim Ault
Las Vegas





More information about the use-livecode mailing list