^
) is used to convert a results name
into its value.nM> set a 20 nM> say "The value of A is ^A" The value of A is 20
^{...}
) to explicitly limit where a results name starts
and stops.
nM> set height 20 nM> say "The height is ^{height}ft" The height is 20ft
^{...}
) is common when
working with tables.
nM> set people {TOM={AGE=37,WEIGHT=189},SUE={AGE=32,WEIGHT=135}} nM> set person SUE nM> say "^person is ^{people.^{person}.age} years old." SUE is 32 years old.In this example
^{people.^{person}.age}
becomes ^{people.SUE.age}
which then becomes 32
.