Jump to content

AutoIt Question.. Its lame..


Cloud
 Share

Recommended Posts

Tried to research it but no luck..

When I use a recursion and pass a variable over, Does the variable I pass over overwrite existing one?

Example

Func blah($blahBlah) // :lmao:

if $blahBlah=0 then

return 0

else

return $blahBlah+blah($blahBlah-1)

endfunc

So when Im in the xth loop, Is $blahBlah still the same memory location as $blahBlah when it was first called or is it its own variable as Java uses (Dont know c++ sorry just java). If its the same How would I solve this problem. I need to keep track of each variable and they need to be different. Thanks, Cloud

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...