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

#160 closed defect (fixed)

Wrong order when decompile the TIME SET

Reported by: jlaybar Owned by: danirus
Priority: normal Milestone:
Component: Various Version: 1.1.1
Severity: minor Keywords:
Cc:

Description

/ Always works if you change the time set to Mensual,Semanal

TimeSet fec = Diario;
Serie at = Gaussian(0,1, fec);

DOES NOT WORK If you change the time set to Mensual, Semanal

TimeSet fec = Diario;
Set Include("C:/at.bdt");

There is a problem in the order of decompile. It does not destroy the serie "at"
when you change the time set and you see this error.

---------------------------------------------------------------------------------------
Warning: ATENCIÓN: ¡¡Esta característica ha sido desaprobada!!
Existe una variable con el mismo nombre y distinto Tipo.
TimeSet fec; ha sido creado anteriormente
Puedes evitar este mensaje usando nombres únicos para las variables globales

ERROR: Variable 'fec' ya definida como "fec"
------------------------------------------------------------------------------------------

Cheers
Jaime

Change History (5)

comment:1 Changed 21 years ago by manuelb

OK, the steps must be as follows:
1.- Compile this program:

TimeSet fec = Diario;
Serie at = Gaussian(0,1, fec);
Set BDTFile( at ?, "/wherever/at.bdt");

2.- Compile this one(Even from a new tolbase):

TimeSet fec = Diario;
Set Include("/home/manolo/at.bdt");

3.- Try to decompile and compile again. The error shows up:

Warning: ATTENTION: This feature has been deprecated!!
There is a global variable with same name but distinct Type.
TimeSet fec; has been created before.
You can avoid this message using unique names for global variables


ERROR: Variable 'fec' already defined as fec"

comment:2 Changed 21 years ago by danirus

Component: ENGINE_ParserUnclassified
Priority: highnormal
Severity: blockerminor

I'm sorry but I can not understand:

1- Why you compile twice the creation of the same variable TimeSet fec?
I'm talking about the step 1 and step 2. You say I have to compile the same
variable twice, but the first one doesn't be decompiled when you try to create it in
the second step.

2- You are working with different files in the step 1 and step 2. This is correct?

comment:3 Changed 21 years ago by manuelb

Sorry about this, when you work hard with one thing, you suppose too much
afterwards! :-)

After first step, better CLOSE tolbase and open it up again, because what this first
step really does is creating the "at.bdt" file, and should not get involved in the
error directly.

comment:4 Changed 21 years ago by danirus

Status: newassigned

I understand! This bug has just been accepted.
Thanks!

comment:5 Changed 21 years ago by danirus

Resolution: fixed
Status: assignedclosed

This bug has just been resolved.
The problem was an incrementation of number of references to "TimeSet fec".
Now the "TimeSet fec" given in the example will be destroyed in decompilation.

Note: See TracTickets for help on using tickets.