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

#776 closed defect (fixed)

Fail using PutName

Reported by: Víctor de Buen Remiro Owned by: Víctor de Buen Remiro
Priority: highest Milestone: Mantainance
Component: Kernel Version:
Severity: blocker Keywords:
Cc:

Description

Function PutName does nothing in this code

Set _.names = Copy(Empty);
Set _.data.cols = Copy(Empty);

Real _AppendVariable( Matrix P, Text name ) 
{
  Real ii = FindIndexByName( _.data.cols, name );
  Real If( ii == 0, 
  {
    Set Append( _.names, [[ name ]] );
    Set Append( _.data.cols, [[ P ]] );
    Real n = Card(_.data.cols);
    Matrix PutName( name, _.data.cols[n] );
    WriteLn("name='"<<name+"'");
    WriteLn("Name( _.data.cols["<<n+"])='"<<
             Name( _.data.cols[n] )+"'");
    Real SetIndexByName( _.data.cols )
  });
  ii
};
Real { _AppendVariable( Matrix a = Rand(1,1,1,1), "x1" ) };

Change History (2)

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

(In [3235]) Refs #776

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

Resolution: fixed
Status: newclosed

El problema se resolvió hace ya tiempo

Note: See TracTickets for help on using tickets.