E
Ercan
Guest
Hi,
I'm using a local variable and initializing this variable to an empty
list in let and in the procedure I'm assigning some values to this list
with operator ->. But If I run same function again. This time the list
is not empty. Isn't this strange?
I tried this with the following function.
procedure(temp(A b)
let( ( (mode '(nil)) )
println(mode)
when(b
mode->a = sprintf(nil "%L" A)
)
println(mode)
)
)
The output in CDS.LOG file is
\i load "~/test.il"
\t t
\p >
\i temp("SDv" t)
\o (nil)
\o (nil a "\"SDv\"")
\t nil
\p >
\i temp("SDv" t)
\o (nil a "\"SDv\"")
\o (nil a "\"SDv\"")
I'm using a local variable and initializing this variable to an empty
list in let and in the procedure I'm assigning some values to this list
with operator ->. But If I run same function again. This time the list
is not empty. Isn't this strange?
I tried this with the following function.
procedure(temp(A b)
let( ( (mode '(nil)) )
println(mode)
when(b
mode->a = sprintf(nil "%L" A)
)
println(mode)
)
)
The output in CDS.LOG file is
\i load "~/test.il"
\t t
\p >
\i temp("SDv" t)
\o (nil)
\o (nil a "\"SDv\"")
\t nil
\p >
\i temp("SDv" t)
\o (nil a "\"SDv\"")
\o (nil a "\"SDv\"")