[M3devel] Out-of-place error?

Tony Hosking hosking at cs.purdue.edu
Sun Dec 26 21:15:37 CET 2010


Weird.  What does the signature of range.get look like?

Antony Hosking | Associate Professor | Computer Science | Purdue University
305 N. University Street | West Lafayette | IN 47907 | USA
Office +1 765 494 6001 | Mobile +1 765 427 5484




On Dec 25, 2010, at 6:41 PM, Jay K wrote:

> 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/20101226/e3c3f5cc/attachment-0002.html>


More information about the M3devel mailing list