G
Guest
It's an ordinary character assignment.
Maybe it is not by chance that your post is #42 in my news folder.
According to the Hitch Hikers Guide to the Galaxy *the* answer is 42
I wanted just to say the same. And adding, it is not different from a=b
where a and b are both declared as character*6.
Just for curiosity, I used the compiler to generate assembly code for
two simple programs (doing only a="123456" and a=b plus necessary
declarations). Not something I usually do, and I do not know assembly
code ... but the two look rather similar.
the first assignment (to a constant) generates
push $STRLITPACK_0 #2.7
push $main$s_$A #2.7
call memmove #2.7
while the second (a=b) generates
push $main$s_$B #2.7
push $main$s_$A #2.7
call memmove #2.7
They look remarkably similar (STRLITPACK looks something initalized
later on to a sequence of .byte 49 .byte 50 .byte 51 .byte 52 .byte 53
..byte 54 .byte 0)