close Warning: Can't synchronize with repository "(default)" (/var/svn/tolp does not appear to be a Subversion repository.). Look in the Trac log for more information.

Opened 21 years ago

Closed 21 years ago

#93 closed defect (duplicate)

Tol crashes in a user defined function of Serie grammar

Reported by: jimarin Owned by: danirus
Priority: normal Milestone:
Component: TimeSetAlgebra Version: head
Severity: normal Keywords:
Cc:

Description

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.

Change History (2)

comment:1 Changed 21 years ago by danirus

Status: newassigned

comment:2 Changed 21 years ago by danirus

Resolution: duplicate
Status: assignedclosed

This bug was resolved.

* This bug has been marked as a duplicate of 10 *

Note: See TracTickets for help on using tickets.