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.

Ticket #755: ticket_13.TheThisIsLost.tol

File ticket_13.TheThisIsLost.tol, 695 bytes (added by pgea@…, 16 years ago)
Line 
1//////////////////////////////////////////////////////////////////////////////
2
3Class CElemento {
4  Real a;
5  Real DiLaClase(Real void) {
6    // Método para usar el _this
7    WriteLn("Mi clase es "<<ClassOf(_this));
8  0}
9};
10
11//////////////////////////////////////////////////////////////////////////////
12
13NameBlock contenedor = [[
14  Set elementos = [[
15    CElemento elem = [[
16      Real a = 1
17    ]]
18  ]]
19]];
20
21// lo referencio en local
22Real {
23  CElemento aux = contenedor::elementos[1];
240};
25
26// y encuentro el error al usar el método:
27Real (contenedor::elementos[1])::DiLaClase(?);
28
29//////////////////////////////////////////////////////////////////////////////
30
31