can i alter a parameter within a function

MEENA SELVAM meena_selvam@REDACTED
Tue Aug 9 22:30:49 CEST 2005


If I have a function which takes a parameter A as in
the call f1("found") is it OK if I change the value of
the parameter A within the function as below? 

f1(A) when A /= "not_found" ->
   VId =1,
   if  s_key(VId) /= "not_found" ->
          VId = VId +1,
          f1(A),
   true->
        A = "not_found",
        Vid -1
   end
   
                           


		
____________________________________________________
Start your day with Yahoo! - make it your home page 
http://www.yahoo.com/r/hs 
 



More information about the erlang-questions mailing list