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

Closed 17 years ago

Last modified 17 years ago

#542 closed defect (fixed)

Anything type does not work well

Reported by: César Pérez Álvarez Owned by: Víctor de Buen Remiro
Priority: highest Milestone:
Component: Kernel Version: 1.1.6
Severity: blocker Keywords:
Cc:

Description

If we run this code:

Anything AnyFunction(Text grammar)
{ If(grammar== "Serie", CalInd(C,Diario), 1)};

Serie MyFunction(Real h)
{

Serie ser = h*AnyFunction("Serie");
ser

};

Serie obj = MyFunction(7);

This code generate the following error:

ERROR: [1] AnyFunction no es un operador de tipo Serie

ERROR: [2] Argumentos erróneos para Serie * S1 * S2 {Serie S1, Serie S2}

ERROR: [3] ser no se pudo crear.

ERROR: [4] ser no es un objeto valido para el tipo Serie.

ERROR: [5] Fallo en la función "MyFunction"

ERROR: [6] obj no se pudo crear.

In oldest version (1.1.5) the function AnyFunction does not cause a problem at all.

Change History (4)

comment:1 Changed 17 years ago by Víctor de Buen Remiro

Status: newassigned

We will work about this problem
Thanks to report it

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

Owner: changed from danirus to Víctor de Buen Remiro
Status: assignednew

comment:3 Changed 17 years ago by Víctor de Buen Remiro

Resolution: fixed
Status: newclosed

Problem has been fixed in CVS.
BGrammar::FindOperator must accept objects of type Code returning grammar AnyThing

comment:4 Changed 17 years ago by Víctor de Buen Remiro

bug_file_loc: http://cvs.tol-project.org/viewcvs.cgi/tol_tests/tol/Bugzilla/bug_000542
Note: See TracTickets for help on using tickets.