[M3devel] Out-of-place error?

Jay K jay.krell at cornell.edu
Sun Dec 26 00:41:28 CET 2010


I don't understand the question.

> From: dragisha at m3w.org
> Date: Sat, 25 Dec 2010 22:22:34 +0100
> To: m3devel at elegosoft.com
> Subject: [M3devel] Out-of-place error?
> 
> 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 :)
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://m3lists.elegosoft.com/pipermail/m3devel/attachments/20101225/0e98416e/attachment-0002.html>


More information about the M3devel mailing list