nsf

Clone Tools
  • last updated 11 hours ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
- fix getAllClassMixinsOf to handle combinations of transitive per class mixins and inheriting per-class mixin via the class hierarchy, removed getAllSubClasses - extend test cases

Complete todos in Changelog

Merge branch 'master' of ssh://alice.wu-wien.ac.at/usr/local/src/git-repo/xotcl

Conflicts:

ChangeLog

* Potential incompatibility: provide a uniform interface to the following info subcommands

<class> info superclass ?-closure? ?pattern?

<class> info subclass ?-closure? ?pattern?

<class> info instances ?-closure? ?pattern?

<class> info instmixinof ?-closure? ?pattern?

<class> info mixinof ?pattern?

In cases, where the option "-closure" is defined,

the values are computed transitively.

In cases, where a pattern is specified, and

the pattern contains meta-characters, a list

of results is returned matching the pattern

(like "string match"). When no matching value

is found, an empty list is returned.

In cases, where a pattern is specified, and

the pattern contains no meta-characters,

a single value is returned korrespinding to

the specified value. The pattern is used

to lookup an object or class, such it is

not necessary to provide fully qualified names).

if there is no match, empty is returned.

Previously, "info superclass" and "info subclass"

returned a boolean value and performed

always a transitive search. Returning ""

is more consistent and more in line with Tcl.

By using the option "-closure" one can

perform the lookup in the transitive

or in the intransitive sets.

Still to do:

children

parent

classchildren

classparent

- update ChangeLog

- fix getAllSubClasses - fix "info mixinof -closure", when pattern was provided - streamline code (AppendMatchingElement) - new info option "-closure" for "info instances" (equiv. to "allinstances", but 5 times faster) - new info option "-closure" for "info superclass" (equiv. to "info heritage")

- fixed softcrecreate for subclasses of recreated classes - fixed softcrecreate when recreate defines different superclasses - extended test cases for mixinoftest

- added missing src_man_dir

updated version number

- added ::xotcl::test::case - shortended output

- Add closure option to mixinofinfo - Enhance getAllClassMixinofs

- saveing object->id in cl->opt->id (probably a temporary solution) - new function: MixinResetOrderForAllInstances (transitive version of MixinResetOrderForInstances() - use MixinResetOrderForAllInstances for resetting instances - extended regression test

- don't call unset traces during an object move

- preserving var traces when copying objects

- fixed evaluation context in guard expressions ([self callingproc] returned "" in cases, where the callingproc was possible to determine)

added CVS to ignore files

extended test slightly

added test for mixinof

    • -0
    • +64
    /tests/mixinoftest.xotcl
name change to reduce confusion: * mixinofs -> isObjectMixinOf * instmixinofs -> isClassMixinOf * getAllInstMixinofs -> getAllClassMixinsOf * RemoveFromMixinofs -> removeFromObjectMixinsOf * RemoveFromInstmixinsofs -> removeFromClassMixinsOf

updated recent changes

- fixed crash for deleted classes in new code - changed name from MixinResetInstanceOrder() to MixinResetOrderForInstances() - imporving documentation - made code more local - activate assertion during development

Merge branch 'master' of ssh://alice.wu-wien.ac.at/usr/local/src/git-repo/xotcl

- new function from Martin MixinResetInstanceOrder() - better cleanup when classes are deleted

Adding Martin's patches for instmixinof

fix alias command for aliasing to tcl procs

insert missing word "list" (typo)

added missing file (install.sh from tclconfig)

add missing file

- change panic() to Tcl_Panic() - panic, when cmdlist contains deleted command

make test slightly more verbose