Ticket #1487 (closed task: fixed)

Opened 7 years ago

Last modified 7 years ago

UsingNameBlock import StartActions

Reported by: josp Owned by: vdebuen
Priority: high Milestone: Mantainance
Component: Kernel Version: 3.1
Severity: critical Keywords:
Cc:

Description

Al importar un NameBlock se tiene la opción de importar o no los miembros privados y readonly, los cuales por omisión no se importan.

Se solicita la posibilidad de poder escoger que se importe o no algunos miembros especiales como el StartActions. Pudiera servir un tercer argumento:

Real usingStartActions = False;

por omisión debería estar a falso. Si es true el miembro StartActions se importa, no se importa si es false.

Change History

Changed 7 years ago by vdebuen

  • status changed from new to closed
  • resolution set to fixed

(In [4404]) Fixes #1487

Changed 7 years ago by vdebuen

(In [4405]) Fixes #1487
Fixed bug in type list of UsingNameBlock

Changed 7 years ago by josp

  • status changed from closed to reopened
  • resolution fixed deleted

El siguiente código ilustra que StartActions está importándose al scope global

#Require MatQuery;

UsingNameBlock( MatQuery );
If( ObjectExist( "Code", "StartActions" ),
    WriteLn( "StartActions ha sido importado al scope global" ) );

Changed 7 years ago by vdebuen

  • status changed from reopened to closed
  • resolution set to fixed

(In [4406]) Fixes #1487
In method BNameBlock::add_using_symbol, member name is iter->first, while name refers to NameBlock owner

Changed 7 years ago by josp

(In [4407]) refs #1487, portando los cambios hechos en el trunk

Note: See TracTickets for help on using tickets.