nsf

Clone Tools
  • last updated 13 hours ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Save code instrumentation to demonstrate the problem

move the logic if Tcl_GetCommandFromObj() is returning an epoched obj to a more central place (GetObjectFromObj()) such it might kick in on other potential occasions as well.

- fix text for Tcl 8.7

- use TclFreeIntRep() instead of direct function calls - perform TclFreeIntRep() for Class and Object creation under Tcl 8.7

fix for Tcl 8.7: - when recreating an nsf object in in tcl 8.7, we seem to have to invalidate the intrep, otherwise the new command is not picked up by a later Tcl_GetCommandFromObj()

* nsf.c (NsfMethodAliasCmd): Tcl 8.7 is more picky about typePtr and intrep being in line. We need to NULL the typePtr explicitly. TclFreeIntRep does so for us as good Tcl citizens, rather than setting bodyObj->typePtr == NULL directly.

* nx.tcl (VariableSlot->setCheckInstVar): Use method parameter 'value' rather than object variable 'default'

* nx.tcl, parameters.test (Object->object variable): Support for substdefault has been entirely missing so far. Added basic tests

* TODO: Add a to-do in filters and unknown-creates in XOTcl 2

- address potential crash when a filter calls a filter which calls unknown

- prefer lower case "U" suffix to improve readability

Adding a first test case

merged

*xotcl2.tcl (Class->unknown): Use ::nsf::current explicitly to avoid nx/xotcl self hickups

- regenerated documentation

    • -295
    • +297
    /doc/example-scripts/tk-ludo.html
- remove useless expr statements

xotcl2 unknown: fix regressions due to uplevel mambo-jumbo

xotcl2.tcl: Make sure that Class->unknown bypasses filter and mixin frames

ExitHandler(): Re-locate clearing history from finalize to ExitHandler

Update TODO

NsfFinalizeCmd(): Clear Tcl's history list explicitly before finalizing NSF (see als ticket 1ae12987cb).

nx::Class unknown: rewritte unknown message to include '?...?'

nsfStack.c: Unify writing style

nsfProfile.c: Fix typos in code comments

nsfFunPtrHashTable.c: Fix typos in code comments

- remove spurious blank in error message - fix typo in print string

merge

Commit missing unknown message change

- improve comment and signature of NsfNoCurrentObjectError - improve wording of other commends, keep cmments within the limits of the header/trailer line

Tests: Adjust the test suite for the latest rewording of the nx::Class unknown message