nx

Clone Tools
  • last updated 17 hours ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
New feature: Added method nx::Object->"info consts"

A "const" is a variable that cannot be altered later. So far, such

constant variables have to be created via the Tcl9 "const" cmd, like

in the example below. The introspection method "/obj/ info consts" is

very similar to "/obj/ info vars", but it lists only unmodifiable

variables.

nx::Object create o {

#

# Create a "const" instance variable

#

const :x 1

set :y 2

...

}

puts [o info consts]

puts [o info vars]

  1. … 6 more files in changeset.
fix for issue #4; Memory leak of NsfMethodContext with Tcl9

Ths is not a fully satisfying fix, since it just fixes the symptom, not the cause.

Also the old variant is supposed to run free of this issue. However, we are

talking here about a single Tcl_Obj inside the nx object system, so the harm

is very limited. More details in the ticket.

fixed misleading name of variable

Fixed handling of invalid parameter specs

This bug was occuring e.g. with an invalid parameter spec as in

:property {fiscalyear:integer, required}

where an additional space was introduced. The bug was reported by

Maksym Zinchenko on the xotcl mailing list (many thanks for that!)

and lead to an attempt of adding an empty parameter option.

Now, an error is generated in this case.

improved spelling

  1. … 2 more files in changeset.
whitespace cleanup

  1. … 1 more file in changeset.
* accessor.test: Added tests to document the behaviour for internally generated per-slot accessor methods * nx.tcl (VariableSlot), properties.test: Make sure that calling delete on a single-valued property/ variable errors out, like calling add * nx.tcl (defineIncrementalOperations): Rewrite to avoid repetitive computations * nx.tcl: First take on fixing definition of incremental slot operations, in presence of custom provided ones (esp. value=delete)

  1. … 2 more files in changeset.
* nx.tcl (VariableSlot), properties.test: Make sure that calling delete on a single-valued property/ variable errors out, like calling add

  1. … 1 more file in changeset.
* nx.tcl (defineIncrementalOperations): Rewrite to avoid repetitive computations

* nx.tcl: First take on fixing definition of incremental slot operations, in presence of custom provided ones (esp. value=delete)

* nx.tcl: Make sure to return "switch" for object parameters via info-introspection. Added some tests.

  1. … 2 more files in changeset.
Adding more test cases

  1. … 2 more files in changeset.
Adding first tests and a tentative fix

  1. … 1 more file in changeset.
Added a warning, when a name of a slot contains characters hinting a typo (missing ":")

* mkIndex.tcl: Have mkIndex produce package-provide compliant ifneeded scripts

  1. … 4 more files in changeset.
Bug fix: include alias to object in "info methods -path"

Previously, it was not possible to define an alias to an object for

NaviServer, since it was not returned by "info methods -path" and

was therefore not included in the blueprint.

Extended regression test.

  1. … 4 more files in changeset.
whitespace cleanup (replace tabs)

make warning message more precise about unexpected slot structures during delete

reduce debugging output

  1. … 1 more file in changeset.
improve spelling

  1. … 4 more files in changeset.
improve spelling

  1. … 19 more files in changeset.
attempt to understand AppVeyor results

  1. … 1 more file in changeset.
* nx.tcl, pkgIndex.tcl: Fix version number to include patch level: x.y.z

Bump version number to 2.4.0

  1. … 10 more files in changeset.
Update copyright years [skip ci]

  1. … 4 more files in changeset.
improve documentation

  1. … 20 more files in changeset.
* nx.tcl, properties.test: Add exists accessor to properties and variables; incl. tests and documentation

  1. … 7 more files in changeset.
Bump version number from 2.3a0 to 2.3

  1. … 9 more files in changeset.
Change http:// occurrences to https://, if applicable (URLs tested)

  1. … 57 more files in changeset.
improve spelling

  1. … 3 more files in changeset.