xotcl.c

Clone Tools
  • last updated 9 hours ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
- Correct deletion of user-metaclasses - commenting existing and potential usage of namespace resolvers

- Correct deletion of user-metaclasses: Deletion of user-metaclasses could lead to undestroyable objects, since the instances of the user-metaclasses were reclassed to ::xotcl::Object instead of ::xotcl::Class. - extend regression test for such situations

  1. … 2 more files in changeset.
- removed unneeded function

- new command ::xotcl::finalize to delete all xotcl objects and classes. Calls as well exit handler - some cleanup

- handle nonposargs in method "copy" properly - extend regression test for copy - added "<class> mixinof -closure ?pattern?" - extended regression test for mixinof - updated documentation

  1. … 15 more files in changeset.
- upgrading object to class and downgrading class to object not allowed via "class" method - upgrading and downgrading can be performed via create (but using destroy/create instead of recreate) - fixed bug, where an "o info precedence" could core, after a class C was destroyed, where class C was used as a superclass of a mixin of o. - minor refactoring

first part of fix when a class is "casted" (via method "class") into an object

  1. … 2 more files in changeset.
Merge branch 'master' of ssh://alice.wu-wien.ac.at/usr/local/src/git-repo/xotcl

Conflicts:

ChangeLog

generic/xotcl.c

  1. … 1 more file in changeset.
* additional argument for "info precedence": "-intrinsic" Syntax: <objName> info precedence ?-intrinsic? ?pattern? If "-intrinsic" is specified, only the classes of the superclass type hierarchy are returnd. Otherwise, the precedence contains mixin classes as well. * Remove pattern argument from "info class" * Check results for guards to be boolean instead of integer (now, guards are allowed to return e.g. "true") * Bump version number to 1.6.1

  1. … 12 more files in changeset.
* check in guards for boolean values, not for integer values, such that a guard {true} means success

  1. … 2 more files in changeset.
* updating language reference

* Fix contents for %proc in forwarders in cases,

where the forwarder was called via next and

the argument list for next was provided.

Previously, "next" was used for %proc.

  1. … 3 more files in changeset.
* make "info (inst)?forward -definition name" more robust (provide an error message, if <name> is nog given * New info subcommands "info parametercmd" and "info instparametercmd" * export *parametercmds in Serializer, use "-noinit" on slots as well

  1. … 2 more files in changeset.
- fixed bug in info instdefault, when argument is an empty string.

  1. … 2 more files in changeset.
- xotcl.c: fix for double ;; (causes chokes MSVC6 in the next line)

  1. … 1 more file in changeset.
- Fix for "x configure -set";

  1. … 1 more file in changeset.
updating dates in copyright

  1. … 13 more files in changeset.
- clear XOTCL_MIXIN_ORDER_VALID flag unconditionally in MixinInvalidateObjOrders() for mixins

* replaced Tcl_ObjSetVar2() with Tcl_SetVar2Ex() in nonposargs, since Tcl 8.5 seemed to optimize local variables away, if these not referenced directly from from Tcl,

  1. … 1 more file in changeset.
- new info option for "info instmixin" supporting -guards and -closure support - extended test cases for "info instmixin"

  1. … 2 more files in changeset.
* Continued with info orthogonality change

<object> info mixin ?pattern?

<class> info instmixin ?pattern?

?pattern? behaves exactly like in the change of two days

ago. Preceding colons in the name of the queried class are not

required.

Still to do "-closure" in

<class> info instmixin -closure ?pattern?

* In all mentioned calls, where pattern refers to an object/class

and it contains wild-cards, a preceding :: is added automatically

to the search pattern, if it is missing. Since all object names

start with ::, an omitted leading :: in a search pattern is an

obvious mistake

* Made the behavior "pattern" in the following calls identical

concerning wild cards and object lookups

<object> mixin delete pattern

<class> instmixin delete pattern

<class> superclass delete pattern

* extended regresson test

  1. … 5 more files in changeset.
- fix getAllClassMixinsOf to handle combinations of transitive per class mixins and inheriting per-class mixin via the class hierarchy, removed getAllSubClasses - extend test cases

  1. … 3 more files in changeset.
* 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

  1. … 6 more files in changeset.
- 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

  1. … 2 more files in changeset.
- 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

  1. … 3 more files in changeset.
- fixed evaluation context in guard expressions ([self callingproc] returned "" in cases, where the callingproc was possible to determine)

  1. … 2 more files in changeset.
name change to reduce confusion: * mixinofs -> isObjectMixinOf * instmixinofs -> isClassMixinOf * getAllInstMixinofs -> getAllClassMixinsOf * RemoveFromMixinofs -> removeFromObjectMixinsOf * RemoveFromInstmixinsofs -> removeFromClassMixinsOf

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

  1. … 1 more file in changeset.
- new function from Martin MixinResetInstanceOrder() - better cleanup when classes are deleted