> On Jan 20, 2021, at 2:54 AM, Daniel Roßberg <[email protected]> wrote:
>
> Why does the following code behave differently in mged, depending on if a
> database is loaded or not:
>
> set P1 "0 0"
> set P2 "1 1"
> set L1 [list $P1 $P2]
What do you mean? I get "{0 0} {1 1}" regardless of opening a database or not,
which is what I’d expect and matches what tclsh reports:
mged> set glob_compat_mode 0
0
mged> set p1 "0 0"
0 0
mged> set p2 "1 1"
1 1
mged> set l1 [list $p1 $p2]
{0 0} {1 1}
mged> puts $l1
{0 0} {1 1}
agua:~ morrison$ tclsh
% set p1 "0 0"
0 0
% set p2 "1 1"
1 1
% set l1 [list $p1 $p2]
{0 0} {1 1}
% echo $l1
{0 0} {1 1}
Are you seeing something different?
Cheers!
Sean
_______________________________________________
BRL-CAD Developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-devel