nsf

Clone Tools
  • last updated 14 hours ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Merge branch '2.0.0-develop' of ssh://alice.wu-wien.ac.at/usr/local/src/git-repo/xotcl into 2.0.0-develop

- Big internal changes for handling nre-enabled procs in more situations. Handles now all nx regression tests, but fails in testx.xotcl (just nre-enabled)

    • -0
    • +33
    /tests/coroutines.tcl
Fixed the bitwise flag comparison in ProtectionMatches() which failed to yield a boolean result. This resulted in unanticipated [obj info methods -callprotection] behaviour, with the -callprotection filter seemingly being ignored. Added some tests to tests/info-method.tcl.

Make library/pkgIndex.tcl traversing three directory levels (instead of just 2). This is necessary to catch the packages and library/xotcl/library. As a symptom, xocomm.test failed. This was because it was picking up comm packages in the install, rather than the source tree which did not reflect the changes in the nested object dispatches: [my connection foo] -> [[self]::connection foo]

- fixed handling of TclNRRunCallbacks, such that coroutines can be easily used (more testing required) - added temporary routine ::nsf::yieldcheck for coro debugging - renamed Tcl85showStack() to TclShowStack()

- regenerated pkgindex files

    • -1
    • +1
    /library/xotcl/library/comm/pkgIndex.tcl
    • -1
    • +1
    /library/xotcl/library/rdf/pkgIndex.tcl
    • -1
    • +1
    /library/xotcl/library/store/pkgIndex.tcl
    • -1
    • +1
    /library/xotcl/library/xml/pkgIndex.tcl
- improved library/lib/make.tcl once more

- fixed again library/xotcl/library/pkgIndex.tcl

- regenerated index files

    • -1
    • +1
    /library/xotcl/library/comm/pkgIndex.tcl
    • -1
    • +1
    /library/xotcl/library/rdf/pkgIndex.tcl
    • -1
    • +1
    /library/xotcl/library/store/pkgIndex.tcl
    • -1
    • +1
    /library/xotcl/library/xml/pkgIndex.tcl
- removed unneeded line

- added explicitly library/xotcl/library/pkgIndex.tcl

    • -0
    • +10
    /library/xotcl/library/pkgIndex.tcl
- make changes for public methods

- fixed a crash for tcl 8.6b1 in return value checking. now it complains about missing cmdPtr; it is not clear, why this is missing at the first place in 8.6b1 while working in 8.5

- merged Stefan's updates into TODO

- made methods (for now just scripted methods) by default protected. - provide methode __default_method_protection to obtain the default method protection when neither protected or public is used. - per default methods are now protected - provide ::nx::configure defaultMethodProtection true|false as conveniant interface - update regression test and serializer to handle default protection

    • -11
    • +11
    /library/serialize/serializer.tcl
- updated todo

- fix typo

- removed obsolete code

- handle next in ensemble with arguments - extended regression test

- new nsf::next cmd. receives 0 or 1 argument, which might be a list of arguments. This avoids ambiguity of ::xotcl::next with "--noArgs". - renamed namespace_copycmds and namespace_copyvars to nscopycmds and nscopyvars (we don't use "_" in nsf::*-names as delimiters elsewhere) - renamed __qualify to qualify (it is a non-exported cmd)

- call internal NextSearchAndInvoke (without NextGetArguments) from the implicit next in ensemble methods - made NsfNextMethod() obsolete to ease different noarg handling policies

- renamed functions in nsfStack.c to follow Tcl naming guidelines

- rennamed tests/subcmd.tcl info tests/submethods.tcl - moved relevant tests from tests/parameters into tests/submethods.tcl

    • -0
    • +216
    /tests/submethods.tcl
- renamed "... info ... subcommands ..." into "... submethods ..."

- refactored next and argument passing (new methods NextGetArguments(), NextSearchAndInvoke() and CallStackFindEnsembleCsc()) - doing an internal next in cases where a method ensemble does not contain the called submethod - added regression tests for partial ensembles

- implemented next within ensemble methods - added regression tests for next within ensembles - added regression tests for upvar with ensembles

- added test case for next in ensemble

- working on next from ensemble

- first steps towards next-handling in ensemble methods

- provide cscPtr in debug output