[EMAIL PROTECTED] wrote:

> When you look at the function's code, you may think that the instructions
> above are incorrect. Isn't 'a assigned as a reference to an emtpy string
> each time the function is evaluated? No. A literal string is global and
> therefore the originally empty literal string here retains the 1 that was
> inserted the first time. When the function is evaluated a second time, a is
> now assigned as a reference to a string that already contains a 1,
> resulting from the first time the function was evaluated. Look:

Thanks to everyone participating in such a discussion so far, it's very
instructive. As for your comments above Elan, I know it is the way you
described. But, in such case, shouldn't we consider "", [] being datatypes?

->> datatype? ""
== false
->> value? ""
== true

hmm, it has a value ... so, if "" and [] are not considered being datatypes, it
is very strange, and as comparison to other languages I know (well, very few
:-), pretty uncommon, that we assign some word to the value, rather than value
to the word ....

-pekr-

>
> Elan

Reply via email to