[PD-dev] TCL_*_VERSION variables

IOhannes m zmölnig zmoelnig at iem.at
Thu Sep 21 20:49:00 CEST 2017


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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://lists.puredata.info/pipermail/pd-dev/attachments/20170921/a9078c71/attachment.sig>


More information about the Pd-dev mailing list