﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc
93	Tol crashes in a user defined function of Serie grammar	jimarin	danirus	"Hi there,

I have experience the following tol crash.

I have a file where I do define a function like:

//////////////////////////////////////////////////////////////////////////////
Serie ReverseSerie(Serie s)
//////////////////////////////////////////////////////////////////////////////
{
  TimeSet dating = Dating(s);
  Date begin = First(s);
  Matrix sM = SerMat(s);
  Matrix rsM = Reverse(sM);
  Set rs = MatSerSet(rsM, dating, begin);
  Serie rs[1]
};
//////////////////////////////////////////////////////////////////////////////

This function returns a Serie type.

Whenever I try to use this function tol crashes:

Serie xx = SubSer(Trend(y2000m01d01, Mensual),y2000m01d01,y2000m12d01);
Serie yy = ReverseSerie(xx);


The funny thing is that:

if I make a function to return a Set instead of a function and then I extract the first 
element of the returned Set everything goes fine.

if I do execute all the sentences of the function one by one in the eval window 
everything goes fine.


Seems to me the retarded evaluation of the Serie returned by the function is the 
cause of this problem."	defect	closed	normal		TimeSetAlgebra	head	normal	duplicate		
