I was just going to go ahead and change example 8 to use the sombrero function by default. This reminded me of a long running "feature" of plplot which I have found irksome in the past, namely that boolean command options can only set an option to true (1) not false (0).
So for example in example 8, we have a variable sombrero which is set to zero by default, but I can set to one by using the command line option -sombrero. Suppose I want to change the default to sombrero = 1, but still have the option to turn off this feature from the command line. Currently I can't do this without rewriting the example and changing the command line option. What I'd like is to be able to have an option like -nosombrero which sets the variable to 0. I've got two ways to do this 1) Automatically add a command line option -noopt for every boolean command line option -opt. This is simple, requires no action on the part of the end user, BUT it might upset any existing codes which already had -opt and -noopt options. I think I could work around this so the existing options took precedence, but it might still be slightly confusing. 2) Add in different versions of PL_OPT_BOOL, say PL_BOOL_T, PL_OPT_BOOL_F and PL_OPT_BOOL_TF. PL_OPT_BOOL_T be the same as the current PL_OPT_BOOL so would leave existing codes unchanged. PL_BOOL_F would be similar, but would always set the variable to false (0). PL_BOOL_TF would be like option 1) above and would automatically create a -opt and -noopt version of every bool command line option. This is completely backwards compatible, but is definitely more complicated (unnecessarily so?) and would require code changes to take advantage of the new feature. Does anyone have any strong feelings on this? Andrew ------------------------------------------------------------------------------ Subversion Kills Productivity. Get off Subversion & Make the Move to Perforce. With Perforce, you get hassle-free workflows. Merge that actually works. Faster operations. Version large binaries. Built-in WAN optimization and the freedom to use Git, Perforce or both. Make the move to Perforce. http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk _______________________________________________ Plplot-devel mailing list Plplot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/plplot-devel