nsf

Clone Tools
  • last updated 23 hours ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
- "/obj/ info method parametersyntax /method/": return results of ::nsf::parametersyntax in case, the parametersyntax cannot obtained from a parameter definition (e.g. the method is a forwarder to a tcl cmd).

    • -19
    • +13
    /library/xotcl/library/xotcl2.tcl
- streamlined error messages - removed NsfErrBadVal() and replaced it with a generalized version of NsfObjErrType(

- made error messages more consistent - improved error messages for "returns" and "nsf::is" (omit parameter name)

- Adjusted for multiplicity types - Added new templates: attributemethod.html.tmpl is responsible for rendering accessor/mutators for attribute slots, object.html.tmpl for objects. - I now render attribute slots both in their object parameter view & a method view. Furthermore, I distinguish between the incremental vs. ordinary interface (as requested). - Fixed div boxing scheme (again) - Adjusted various places (method.html.tmpl, submethod.html.tmpl) to display the status marks (more to come) - Streamlined the method views, introducing Type and Protection sections - Started adopting the /obj/ prefix in parameter listings - Made the @use mechanism working again (under validation). Once tiny bit needs to be fixed: The upward propagation of status messages if @use is in place. - Removed the cause for redundant validation calls by traversing the entity hierarchy only once. - Added nx-specific tracers (to distinguish between ensemble and slot objects, ...) For now, they work fine, but are tangled with non-nx tracing. This needs refactoring. - Added another nx-specific tracer which tackles the issue of the __resolve_method_path helper. While quite cumbersome and coupling nxdoc to many internal design decisions of nx, it turns any change in nx.tcl unnecessary. - Fixed ::nx::doc::handleinfo to deal with objects as methods (the case for intermediate ensemble objects). - Added ::nsf::setter support - Fixed the validation support for submethod structures. - Some cleanup (to be continued)

    • -0
    • +78
    /library/lib/doc-assets/attributemethod.html.tmpl
    • -8
    • +20
    /library/lib/doc-assets/class.html.tmpl
    • -1
    • +1
    /library/lib/doc-assets/command.html.tmpl
    • -22
    • +24
    /library/lib/doc-assets/entity.html.tmpl
    • -73
    • +74
    /library/lib/doc-assets/method.html.tmpl
    • -0
    • +101
    /library/lib/doc-assets/object.html.tmpl
    • -142
    • +276
    /library/lib/doc-tools.tcl
- provide warning if nonpositional argument is passed more than once

- improve wording in comment

- added returns handling for nx in serializer - extended regression test

- extended und overworked mirgration guide (added e.g. multiplicity)

- extended regression test

- further cleanup of error procs: eliminated NsfObjErrArgCnt() - improve error message, when too many arguments are passed

- fix messages when test fails

- minor cleanup

- make sure to load the local version of the old XOTcl documentation toolkit

    • -2
    • +2
    /library/xotcl/library/lib/makeDoc.xotcl
    • -1
    • +1
    /library/xotcl/library/lib/xodoc.xotcl
- added strnstr emulation for installations without having it

- new printf-style error message generator: NsfPrintError() - simplified error handling: removed NsfVarErrMsg() and NsfErrMsg() and replaced it by NsfPrintError()

- fixed bug with required last object parameter without provided value - extended regression test

    • -1
    • +14
    /library/xotcl/tests/slottest.xotcl
- apply allowempty only on list, and not to elements

- fix a few typos in TODO

- introduced a few forms of multiplicty * 0..1 allow empty value * 0..* list, can be empty (equivalent to 0..n) * 1..* list, cannot be empty (equivalent to 1..n) - deprecate multivalued in parameter specs in favor of multiplicty - deprecate allowempty in parameter specs in favor of multiplicty - adjust regression test

- make "... info children ?pattern?" compliant with XOTcl 1; if pattern contains no wildcard and is no absolute path, nsf completes it. (eg. Object create o; Object create o:x; o info children x" will return ::o::x) - extended regression test

- quote name of referenced parameter in error message to ease reading - new parameter checker "parameter", performing an approximate checking for valid parameter specs - set NSF_ARG_CHECK_NONPOS only when there are multiple arguments - remove space checking for NSF_ARG_CHECK_NONPOS in favor of parameter checker

- minor cleanup

- provide a generic logging interface * predefined for plain Tcl and aolserver/naviserver * C-level: NsfLog() * Tcl-level: ::nsf::log

- Fixed some naming confusion around @class-object-method - Completed statusmark support down to the @param level - method parameter definitions are now pre-processed during tracing; see ::nx::doc::paraminfo - Continued the pinfo/pdata-based refactoring

    • -21
    • +26
    /library/lib/doc-assets/method.html.tmpl
- xotcl2.tcl: fix the default init handler - nsf.c: provide warnings when unchecked parameter values might conflict with nonpos args

- nsf.c: aquire parameter structure for returns more lazyly (otherwise, a serializer handling returns would aquire the structure for every argument) - extend regression test

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

- xotcl2.tcl: cleanup of forward implementation - xotcl2.tcl: provide debug version of default init method

- nx.tcl: cleanup of forward implementation

- Fixed an issue when accessing partly initialised NsfParamDefs (created e.g. by [::nsf::methodproperty ... returns]) from [info method] subcommands, previously leading to invalid memory accesses. Added a test to tests/returns.test. - Minor correction: xotcl2's method_handle_to_xotcl was not aware of the change to "class-object" as scope modifier.