nsf

Clone Tools
  • last updated 11 hours ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Method and configure parameter reform, Part 2: In order to streamline the interface further, we tried to follow the idea to use "... info /plural word/" to obtain a set of handles, and then a separate call to obtain the details. Therefore, we replaced

/cls/ info slot objects

/cls/ info slot definitions

/cls/ info slot names

/obj/ info object slot objects

/obj/ info object slot definitions

/obj/ info object slot names

/obj/ info lookup slots

by

/cls/ info slots ?-type /type/? ?-closure? ?-source all|application|baseclasses? ?/pattern/?

/obj/ info object slots ?-type /type/? ?/pattern/?

/obj/ info slot definition /obj/

/obj/ info lookup slots ?-type /type/? ?-source all|application|baseclasses? ?/pattern/?

- Method and configure parameter reform

/cls/ info configure parameters ?pattern? -> list of params

/cls/ info configure syntax -> syntax output

/obj/ info method parameters /methodName/ ?/pattern/? -> list of params

/obj/ info method syntax -> syntax output

/obj/ info lookup configure parameter ?/pattern/? -> list of params

/obj/ info lookup configure syntax -> syntax output

/cls/ info parameter list|name|syntax /param/ -> value

- avoid crash in case NsfParameterGetCmd() is passed a plain value

- minor documentation updates

- initialize stub-tables only once

- syntax formatter: use /value/ for denoting placeholder in "... info method syntax ..."

- parametersyntax: make placeholders explicit

- moved "/obj/ info slot definition|..." to "/obj/ info object slot definition|..." for consistency - provided "parametersyntax()" for "object mixin" and "object filter"

win/makefile.vc: have the install target copy the public headers as well

Merge branch 'object-method' of ssh://alice.wu.ac.at/usr/local/src/git-repo/nsf into object-method

MinGW toolchains do not provide support _vscprintf(), so we limit the use of it to MSVC; tested NsfDStringPrintf under MinGW

Provide tcl library path to summary.tcl and remove intermediate file from repo

Fixed the Win32 logic for computing the Tcl_DStringth in NsfDStringPrintf(), tested for MSVC under x86 and amd64

- updating next-tutorial to object method syntax

    • -402
    • +404
    /doc/next-tutorial/next-tutorial.html
    • -75
    • +76
    /doc/next-tutorial/next-tutorial.txt
    • -250
    • +407
    /doc/next-tutorial/object-stack.graffle
    • binary
    /doc/next-tutorial/object-stack.png
    • binary
    /doc/next-tutorial/per-class-mixin.png
    • binary
    /doc/next-tutorial/per-object-mixin.png
Merge branch 'object-method' of ssh://alice.wu-wien.ac.at/usr/local/src/git-repo/nsf into object-method

- updated migration guide

- update to new namings

Fix the 86-specific tests to reflect the object-modifier reform

- try to print arguments in one sweep in NsfDStringPrintf() - remove "extern" declarations

Revised NsfDStringPrintf() for portability to non-C99-compliant C runtimes; remains to be tested

- first and incomplete update of migration guide to new syntax

Re-enabling deletion of intermediate file in makefile

Remove legacy build artifacts

Provide native Win build support for MSVC++ and MSVC, using the Tcl 8.6 nmake templates. Tested using Visual Studio 12 (VC and nmake in version 11). See makefile.vc for build instructions for Win32 and Win64.

- bumped version number to 2.0b5 - tested with NaviServer and OpenACS (new version of nx needs as well a newest NaviServer, since ns_cache implementation needs to be objectified; newest NaviServer version works as well with older nx)

- fix xotcl instance method serialization (still not covered in regression test)

- bump version number to 2.0b5

- renamed "package require nx::class" to "package require nx::class-method" in analogy to "nx::plain-object-method"

    • -0
    • +108
    /library/nx/class-method.tcl
- added "/obj/ object variable" and "/obj/ object property"

    • -5
    • +14
    /library/nx/plain-object-method.tcl
MongoDB - added "nx::mongo::db drop collection /name/" - returning status from "nx::mongo::db remove" as success (0 or 1)