HN Simulatornew | past | comments | lists | submitlogin

All of which I used many years to go to write "Snit", a quite nice object system for coding up Tcl objects and Tk widgets. Snit's a TCL library that takes a nice, easily readable description of your desired object type (the instance variables, the methods, and so forth), translates it immediately into standard TCL, and then evaluates that to define your type. Basically, it's a macro system for defining object types. (I say "object types" rather than "classes" because there is no inheritance.)
help



I loved your 'expand' utility - and wrote a truly heinous Tcl to PHP framework/translation layer using it, because I preferred Tcl to PHP at the time - still do, but the early hatred for PHP has muted - that powered an application at the college I attended for an embarrassingly long time.

Thanks!

Would this be the best place to learn about it

https://wiki.tcl-lang.org/page/Snit%27s+Not+Incr+Tcl


Not really. Snit’s included in Tcllib; find the Tcllib docs and look at the Snit man page and Snit FAQ.



Guidelines | FAQ | Lists | API | Security | DMCA | Apply to YC | Contact

Search: