File: critcl_class.man

package info (click to toggle)
critcl 3.1.17%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 10,028 kB
  • sloc: ansic: 54,884; tcl: 15,930; sh: 6,951; pascal: 3,272; asm: 3,058; ada: 1,681; cpp: 1,001; cs: 879; makefile: 310; perl: 104; xml: 95; f90: 10
file content (56 lines) | stat: -rw-r--r-- 2,059 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
[comment {-*- tcl -*- doctools manpage}]
[manpage_begin critcl::class 3tcl 1.0.6]
[include include/module2.inc]
[keywords {C class} {C object} {C instance}]
[titledesc {CriTcl Utilities: C Classes}]
[require Tcl 8.4]
[require critcl [opt 3.1.6]]
[require critcl::class [opt 1.0.6]]
[description]
[para]
[include include/welcome.inc]
[para]

This document is the reference manpage for the [package critcl::class]
package. This package provides convenience commands for advanced
functionality built on top of the core.

[para] With it a user wishing to create a C level object with class
and instance commands can concentrate on specifying the class- and
instance-variables and -methods in a manner similar to a TclOO class,
while all the necessary boilerplate around it is managed by this
package.

[para] Its intended audience are mainly developers wishing to write
Tcl packages with embedded C code.

[para] This package resides in the Core Package Layer of CriTcl.
[para][image arch_core][para]

[comment {===================================================================}]

[section API]

[list_begin definitions]
[call [cmd ::critcl::class::define] [arg name] [arg script]]

This is the main command to define a new class [arg name], where
[arg name] is the name of the Tcl command representing the class,
i.e. the [term {class command}]. The [arg script] provides the
specification of the class, i.e. information about included headers,
class- and instance variables, class- and instance-methods, etc.

See the section [sectref {Class Specification API}] below for the
detailed list of the available commands and their semantics.

[list_end]

[comment {===================================================================}]
[section {Class Specification API}][include include/class_spec.inc]

[comment {===================================================================}]
[section Example][include include/class_example.inc]

[comment {===================================================================}]
[include include/feedback2.inc]
[manpage_end]