On 09/21/2017 05:55 PM, Miller Puckette wrote:
> In that case I'd recommend making it a function of some sort,

or define your actual workhorse function depending on the tcl-version.
so you only need to parse it once:

~~~
if { broken_tcl } {
  proc do_something {} {
      # implementation for broken TCL/TK
  }
 } {
  proc do_something {} {
      # implementation for working TCL/TK
  }
}

do_something
~~~

the beauty of dynamic languages...

fgmards
IOhannes

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Pd-dev mailing list
[email protected]
https://lists.puredata.info/listinfo/pd-dev

Reply via email to