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 15 years ago

Closed 15 years ago

#859 closed defect (fixed)

TOL falls down due to a sintax mistake

Reported by: imendez Owned by: Víctor de Buen Remiro
Priority: normal Milestone:
Component: Various Version: 1.1.7
Severity: blocker Keywords:
Cc:

Description

Hi, a sintax mistake in both EvalSet or For functions causes a TOL crash.
For example, this code makes TOL fall down:

Set CjtoNum = SetOfReal(0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55);
Set Crash_For = For(2, Card(CjtoNum), Real(Real n = 4)
{ CjtoNum[n]/CjtoNum[n-1] });
Set Crash_EvalSet = EvalSet(CjtoNum, Real(Real n = 2)
{ CjtoNum[n]/CjtoNum[n-1] });

Regards

Change History (2)

comment:1 Changed 15 years ago by Jorge

On 2.0.1 it does not crash

<E>
ERROR: [1] Wrong declaration in user function Real (Real n=4)</E>
<E>
ERROR: [2] Function could not been created</E>
<E>
ERROR: [3] Wrong arguments in call to Set For (Real n, Real m, Code f)</E>
<E>
ERROR: [4] Crash_For could not be created.</E>
<E>
ERROR: [5] Wrong declaration in user function Real (Real n=2)</E>
<E>
ERROR: [6] Function could not been created</E>
<E>
ERROR: [7] Wrong arguments in call to Set EvalSet (Set set, Code doit)</E>
<E>
ERROR: [8] Crash_EvalSet could not be created.</E>
Included file /tmp/bug.tol [0.000 sec.]

Should be checked in 1.1.7 as reported.

comment:2 Changed 15 years ago by Víctor de Buen Remiro

Resolution: fixed
Status: newclosed

Sorry, it's needed a very hard work to solve this problem in TOL 1.1.7 and it's already solved in version 2.0.1

I beg you wait for the publication of the new version

Note: See TracTickets for help on using tickets.