Opened 16 years ago
Last modified 16 years ago
#711 closed defect
Creación de Objetos (sin nombre) de una Clase — at Version 1
| Reported by: | Javier Portugal | Owned by: | Víctor de Buen Remiro | 
|---|---|---|---|
| Priority: | lowest | Milestone: | OOP Implementation | 
| Component: | OOP | Version: | 2.0.1 | 
| Severity: | trivial | Keywords: | |
| Cc: | 
Description (last modified by )
Si intento crear un objeto de una clase pero no le asigno nombre en lugar de crear un objeto de la clase, crea un simple NameBlock
// Clase objeto
Class Object
{
  Text _.name;
  Text GetName(Real void) {
    Text _.name
  }
};
// Creo objeto (Este si es un objeto de la Clase Object)
Object obj1 = 
[[
  Text _.name = "Objeto 1"
]];
// Intento crear objeto sin nombre (es un NameBlock, no es un objeto de la clase Object)
Object  
[[
  Text _.name = "Objeto 2"
]];
    Change History (1)
comment:1 Changed 16 years ago by
| Description: | modified (diff) | 
|---|---|
| Milestone: | → OOP Implementation | 
| Status: | new → assigned | 
| Version: | → 2.0.1 | 
Note: See
        TracTickets for help on using
        tickets.
    