ncsa / qdl

the QDL programming language
Other
1 stars 0 forks source link

Getting relative indices fail for sparse lists #47

Closed jjg-123 closed 1 month ago

jjg-123 commented 2 months ago

A sparse list has gaps in entries. So a.0 :=1; a.42 := 3;

QDL supports negative (i.e. relative) addressing, but

a.(-1)

returns in index error. Tests work for lists if there are no gaps though.