홈페이지: ?
Tcl의 "hash" 확장 기능은 Tcl의 해시 테이블 함수를 사용할 수 있는 명령어들을 생성합니다. 이 확장 기능은 Tcl 배열과 유사한 기능을 제공하지만, Tk 위젯 명령어가 윈도우 조작에 접근하듯이 Tcl 함수들을 통해 인터페이스가 제공된다는 점이 다릅니다. 해시 테이블은 또한 Tcl 배열과는 다른 몇 가지 특징을 가지고 있습니다: 정의되지 않은 테이블 항목에 접근할 때 기본값을 제공할 수 있고, 고정된 항목 집합을 갖도록 만들 수도 있습니다. (이 후자의 특성 덕분에 해시 테이블은 C의 구조체(struct)를 시뮬레이션하는 데 유용하게 사용될 수 있습니다.
The Tcl "hash" extension creates commands that access Tcl's hash table functions; it provides functionality that is similar
to Tcl arrays, except that the interface is via Tcl functions, in a manner similar to the way Tk widget commands provide access to window operations. Hash tables also have a number of features not shared with Tcl arrays: they can provide a default value when undefined table entries are accessed, and they can be made to have a fixed set of entries. (This latter property makes them useful for simulating C structs.
'Tcl & Tk > 확장 패키지 (Extension Package)' 카테고리의 다른 글
argp 0.2 (0) | 2025.09.01 |
---|---|
Swank 2.1.3 (0) | 2025.09.01 |
tclpcap 2.0.0 (0) | 2025.09.01 |
tclTelnet 2.0.1 (0) | 2025.09.01 |
TODL 0.1 (0) | 2025.09.01 |