Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: d1bdf3527bb96011e38a0c9b149ab0b4f01edce3b0d341ee66fd72c6e5d04f9e
Ticket: 858a615194b96b1e3d865bea1b1487b966e3dc24
oo::define supports classvariable but this is not really documented
User & Date: cdubois on 2026-01-12 03:55:53
Changes

  1. icomment:
    Thanks for the report.
    
    oo::define classvariable appears to be implemented and usable today, but it is missing from the formal command list on the oo::define manpage. I can put together a small doc patch to add it to the definitions section (with a short description alongside the other oo::define subcommands).
    
    On “class constants”: as far as I can tell TclOO does not provide a dedicated constant mechanism, so what people do here is an idiom. I suggest we first fix the clear documentation omission for classvariable, and then (if maintainers agree) add a brief note in the examples/notes clarifying the recommended pattern for read-only class-level values.
    
  2. login: "cdubois"
  3. mimetype: "text/plain"