nsf

Clone Tools
  • last updated 14 hours ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
- 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

- updated todo list

- remove useless line

- documented behavior of upvar/uplevel with aliases on scripted procs through regression test

- renamed "parameter" into "attributes" in nx - renamed "info parameter" into "info attributes" in nx - updated migration guide - fixed several common typos

- checked equivalence of the following two commands in respect to fully-qualified names ::nsf::dispatch $obj ::nsf::cmd::ObjectInfo2::hastype $class ::nsf::parametercheck object,type=$class $obj extended regression test (paramters.tcl)

- removed overhead on ::nsf::dispatch when called with absolute paths - absolute paths have to start with ":".

- improve comments in nsf.c - follow closer naming of Tcl style guide

- added "info method subcommands ..." to return list of subcommands (of the ensemble) - extended regression test - use always NULL instead of 0 when assigning to a pointer variable

- changed "cls object method ..." and friends into "cls class-object method ..."

    • -12
    • +12
    /library/serialize/serializer.tcl
  1. … 4 more files in changeset.
- fixed handles with subcommands for class methods when called on classes or objects - extended regression test

- fixed handles with subcommands used on objects without namespaces - new functions: GetRegObject()

- polish comments

- second part of ensemble name resolver, distinguish between registration object and definition object - new functions: GetRegObject() - extended regression test