20-Ordered-Composite-procs.tcl

  • last updated 13 hours ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
OrderedComposite->orderby: added argument "-type"

By the change, one can now specifiy the sorting type for the ordered

composite. The sorting type can be "integer", "real", "index" or

"dictionary" (default "dictionary"). If the sorting type is set to

"index", the mixin ::xo::OrderedComposite::IndexCompare is added

automatically.

Bump version number to 5.10.1d6

  1. … 1 more file in changeset.
get rid of (commented out) puts statements

use "ns_strcoll" for ordered composite when available

    • -12
    • +21
    ./20-Ordered-Composite-procs.tcl
  1. … 1 more file in changeset.
simplify code (allow warning, although i am not fully convinced, this is a good idea)

  1. … 1 more file in changeset.
Make sorting more robust to invalid sorting criteria: instead of failing, ignore them and report the condition as a warning

improve robustness of deep_copy method

since so far, we do not require that an empty ordered composite has allways

the children variable set (but maybe we should), don't assume it is always

there

improve spelling

  1. … 5 more files in changeset.
whitespace cleanup

  1. … 12 more files in changeset.
prefer name resolver over "my" call

add method for deep copy of ordered composites

prefer "nsf::is object" over ":isobject" or "info commands", since it is faster, more generic and can be used in all contexts

  1. … 10 more files in changeset.
- modernize code (remove "my")

  1. … 5 more files in changeset.
- modernize code (remove "my")

  1. … 12 more files in changeset.
simplify logic

fix behavior for Tcl 8.5:

it seems that the scripted "try" implementation in tcllib is not fully

compatible with the built-in version in Tcl 8.6; fall back in these

cases to the old implemenentation of the methods "contains"

Reduce numbber of "catch" operations

    • -10
    • +16
    ./20-Ordered-Composite-procs.tcl
  1. … 8 more files in changeset.
Use consistently xo::library to ensure application specific subclassability

  1. … 13 more files in changeset.
Prefer XOTcl 2.0 idioms

    • -29
    • +28
    ./20-Ordered-Composite-procs.tcl
  1. … 2 more files in changeset.
merged changes from the oacs-5-9 branch and resolved conflicts

  1. … 7834 more files in changeset.
- use explicit create statements

  1. … 9 more files in changeset.
Merging back to HEAD branch oacs-5-8 (using tag vg-merge-oacs-5-8-from-20141027).

    • -14
    • +20
    ./20-Ordered-Composite-procs.tcl
  1. … 2547 more files in changeset.
- change tabs into spaces

    • -11
    • +17
    ./20-Ordered-Composite-procs.tcl
  1. … 22 more files in changeset.
- don't abbreviate subcommands

  1. … 22 more files in changeset.
- use tcl 8.5 extended index format for "string range"

  1. … 5 more files in changeset.
- use more tcl 8.5 idioms

  1. … 6 more files in changeset.
- make test for overwritten tcl 8.5 command apply namespace independent

- avoid attempts to resolve "self" from tcl function frames (as suggested by Stefan)

  1. … 4 more files in changeset.
- simplified order-composite stacking by using an explicit stack (as suggested by Stefan)

- old style works in xotcl2 as well

- compatibility fix