« Return to Thread: Reassignment to Val

Re: Reassignment to Val

by Randall Schulz :: Rate this Message:

Reply to Author | View in Thread

On Monday July 6 2009, Joob wrote:
> Well,
>
> I declared the list as a "var" in my main
>
> However it is a function parameter where I have the error
>
> What do I have to do to make sure it stays a "var" and not a "val" ?
> (If that is what I have to do, maybe I'm misunderstanding)

You may prefix a formal parameter name with "var" to make it
reassignable.


Randall Schulz

 « Return to Thread: Reassignment to Val