From: Mgr. Lubos Vrbka (lubos.vrbka_at_uochb.cas.cz)
Date: Wed Apr 26 2006 - 06:29:48 CDT

dear john and others,

thanks for the example. after some additional reading i arrived at the
(almost) same result.

> Here's a simple example I just wrote up:
>
> proc myproc {} {
> set a {}
> lappend a list
> lappend a of
> lappend a stuff
> puts "List: $a"
> set myary(A) $a
> set myary(B) {another list of stuff}
>
> puts "Array values inside proc:"
> puts "[array get myary]"
>
> return [array get myary]
> }
>

when running such code in the tk console, the whole [array get myary]
list is returned and assigned to the variable, but also printed to the
console. is this correct behavior? or just some 'feature' of the vmd tk
console? can i somehow get rid of it?

regards,
lubos

-- 
.....................................................
Mgr. Lubos Vrbka
Center for Biomolecules and Complex Molecular Systems
Institute of Organic Chemistry and Biochemistry
Academy of Sciences of the Czech Republic
Prague, Czech Republic
http://www.molecular.cz/~vrbka
.....................................................