In that case I'd recommend making it a function of some sort, not global variables, which have bitten us in the past. In particular, global vars are complicated to use during start-up as you have to be careful about what order everything runs in.
cheers Miller
On Thu, Sep 21, 2017 at 10:18:57AM +0200, Dan Wilcox wrote:
Well, I'm hoping to use them or at least the patch level. That made more sense to me then parsing the patchlevel string each time.
enohp ym morf tnes
Dan Wilcox danomatika.com robotcowboy.com
On Sep 21, 2017, at 10:03 AM, IOhannes m zmoelnig zmoelnig@iem.at wrote:
On 2017-09-20 23:37, Dan Wilcox wrote: Where are the TCL_MAJOR_VERSION, TCL_MINOR_VERSION, & TCL_BUGFIX_VERSION set? There are listed as globals in pd-gui.tcl and don't seem to be set on mac when running Pd from the command line. I'm trying to check the BUGFIX version in order to detect if the buggy 8.5.9 is being used on macOS.
here they are set to (0,0,0), which is the default in pd-gui.tcl:117ff (for all platforms). since it's nowhere used (neither set nor consumed), despite the comment on top of it, it should probably be removed completely.
gfamsdr IOhannes
Pd-dev mailing list Pd-dev@lists.iem.at https://lists.puredata.info/listinfo/pd-dev