[M3devel] Out-of-place error?

Dragiša Durić dragisha at m3w.org
Sat Dec 25 22:22:34 CET 2010


I am getting this message

***
*** runtime error:
***    An enumeration or subrange value was out of range.
***    file "../src/types/XLTypeList.m3", line 235
***

And code is:
235	          RETURN RefSeq.Sub(o1, from-1, XLTypeNumber.FromInt(range.get(1)));

In this environment (just to get an idea):
        IF range.get(1) = NIL THEN
          RETURN RefSeq.Sub(o1, from-1);
        ELSE
          RETURN RefSeq.Sub(o1, from-1, XLTypeNumber.FromInt(range.get(1)));
        END;

Same crash, same line :), happened when I inserted
           <* DEBUG range.get(1) *>

before RETURN statement in ELSE branch..

Why this happens?

TIA,
dd

p.s. Merry Christmass, of course :)


More information about the M3devel mailing list