Clone
ssoberni <stefan.sobernig@wu-wien.ac.at>
committed
on 24 Aug 11
- generic/nsf.c: For "tolerating" hidden objects, I verified the various occurrences of conitional branching based on the cmd's epoch… Show more
- generic/nsf.c: For "tolerating" hidden objects, I verified the    various occurrences of conitional branching based on the cmd's    epoch counter. While most occurrences are not concerned (cmds of    nested objects, or simply non-object commands), I identified three    relevant spots: a) In NsfProcAliasMethod(), invalidating and    rebinding the alias target command (including hidden objects as    alias pointers) is based on the epoch counter; b) in    MixinSearchProc() the lookup of mixed-in methods is affected; c)    using CmdListRemoveEpoched() (as the name says), "deleted" commands    are identified by looking at the cmd epoch and sorted out from    mixin lists computed for precedence lists. I corrected cases b) and    c), with the fixes being covered by accompanying tests; a) turned    out to be consistent with alias rebinding behaviour for    [rename]. While we could correct a) for hidden cmd awareness, this    would have to be done for the likeminded alias + [rename] as well. - generic/nsf.c: Renamed CmdListRemoveEpoched() to   CmdListRemoveDeleted() - tests/interp.test: Added tests on b) and c), as well as hiding   globally namespaced procs and objects as alias targets (merely for   documenting the behaviour).

Show less