On Sat, Aug 01, 2026 at 09:33:15AM +0800, Qian Yun wrote:
> On 8/1/26 9:10 AM, Waldek Hebisch wrote:
> > I have created a simple domain (attached) that implements indexd
> > variables. It has some similarity to OrderedVariableList,
> > because it accepts a list of symbols. But the symbols are
> > just used as base for names and there is numeric suffix.
> > So one can have things like a0, a1, ..., b0, b1,..., t0, ...
> >
> > I plan to include it.
> >
>
> 1. Use 'Rep:=Integer' instead of 'pretend'?
We have just two 'pretend'-s in context where types are clearly
specified. Rep is more dangerous in similar cases and needs
more code.
> 2. Change '(Symbol, Integer)' to '(Symbol, NNI)'?
Various indexing functions use Integer and that caused no
trouble. OTOH NNI frequently needs extra code. And
computations should work fine if anybody needs negative
indices, only the output would be fishy in such case
(but probably no worse than for SMP(INT, INT)).
--
Waldek Hebisch