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

Closed 11 years ago

Last modified 11 years ago

#1728 closed defect (fixed)

La redefinición de conjuntos no elimina la estructura

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

Description

La redefinición de conjuntos no elimina la estructura. Por ejemplo:

Set a = [[
  Set b = @Anything(2)
]];
Set a::b := Copy(Empty); 
// No se borra la estructura de a:
Text StructName(a::b); // -> "@Anything"
// Esto da problemas al copiarlo:
Set DeepCopy(a);
/*
ERROR: [] No se puede aplicar la estructura @Anything que tiene 1 campos a un conjunto con 0 elementos
*/

Change History (4)

comment:1 Changed 11 years ago by Jorge

(In [6008]) refs #1728, test code

comment:2 Changed 11 years ago by Jorge

Resolution: fixed
Status: newclosed

(In [6009]) fixes #1728, cuando la conjunto origen no tiene estructura hay que limpiar la estructura del destino

comment:3 Changed 11 years ago by Jorge

(In [6010]) refs #1728, portando solución desde el trunk

comment:4 Changed 11 years ago by Jorge

(In [6011]) refs #1728, subimos version

Note: See TracTickets for help on using tickets.