| Store | Cart

Re: [TCLCORE] TIP 166: Reference implementation

From: Simon Bachmann <simo...@bluewin.ch>
Sun, 9 Apr 2017 10:11:42 +0200
Am 26.03.2017 um 20:49 schrieb Simon Bachmann:
> Am 26.03.2017 um 13:02 schrieb Francois Vogel:>> Simon Bachmann a écrit le 23/03/2017 à 21:15 :>> I have one question though, regarding the -boolean switch you propose>> to add to the transparency subcommands 'get' and 'set'. Is this switch>> really needed? I mean, what is the difference between absence of this>> switch and presence? What changes between:>>>>        set tr [photoImageInstancetransparencyget 5 5]>>>> and>>>> /set /tr [photoImageInstancetransparencyget 5 5 -boolean]>>>> ? Wouldn't 'tr' get the same boolean value in both cases?> That's correct, the -boolean switch is redundant. Since I didn't write> the TIP, I can only guess the reasoning behind this. I think it's for> "symmetric" reasons: if we have two variants, both should get their> switch - even if one of them is the default when no switch is passed.>> One use case where the -boolean option could be useful, is something> like this:>>       myImg transparency get $x $y $type>> where $type would be either '-boolean' or '-alpha'.>> Yet, I never really felt the need for this -boolean option :-). If I> understand this correctly, this "boolean transparency" is a relic from> days long gone, when photo images didn't have an alpha channel. So I> wouln't mind removing it.
Time to make a decision on this one!
After thinking this over again, I think it's better to remove the 
'-boolean' switch.
It doesn't make much sense to have a redundant switch for an outdated 
feature.

Any arguments against this decision?

Simon

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Tcl-Core mailing list
Tcl-...@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tcl-core

Recent Messages in this Thread
Simon Bachmann Feb 26, 2017 09:23 am
Alexandre Ferrieux Feb 26, 2017 10:20 am
Simon Bachmann Feb 26, 2017 07:59 pm
Donal K. Fellows Mar 03, 2017 09:04 am
Simon Bachmann Mar 06, 2017 08:18 pm
Rolf Ade Feb 27, 2017 11:44 am
Simon Bachmann Feb 28, 2017 01:34 am
Simon Bachmann Mar 02, 2017 08:41 pm
Simon Bachmann Mar 23, 2017 08:15 pm
Francois Vogel Mar 26, 2017 11:02 am
Francois Vogel Mar 26, 2017 12:19 pm
Brian Griffin Mar 26, 2017 04:14 pm
Simon Bachmann Mar 26, 2017 06:56 pm
Simon Bachmann Mar 26, 2017 07:08 pm
Francois Vogel Mar 26, 2017 09:55 pm
Simon Bachmann Mar 27, 2017 08:51 pm
Francois Vogel Mar 28, 2017 06:22 am
Francois Vogel Apr 05, 2017 04:23 am
Simon Bachmann Apr 05, 2017 09:21 pm
Simon Bachmann Mar 26, 2017 06:49 pm
Alexandre Ferrieux Mar 26, 2017 06:57 pm
Francois Vogel Mar 26, 2017 09:07 pm
Francois Vogel Mar 26, 2017 09:27 pm
Simon Bachmann Mar 27, 2017 08:50 pm
Simon Bachmann Apr 09, 2017 08:11 am
Alexandre Ferrieux Apr 09, 2017 09:23 am
Simon Bachmann Apr 15, 2017 02:08 pm
Francois Vogel Apr 19, 2017 03:59 am
François Vogel Apr 20, 2017 05:43 pm
Simon Bachmann Apr 20, 2017 07:17 pm
Francois Vogel Apr 20, 2017 08:02 pm
Simon Bachmann Apr 20, 2017 08:13 pm
Francois Vogel Apr 20, 2017 08:26 pm
Simon Bachmann Apr 30, 2017 08:22 am
Francois Vogel Jun 03, 2017 08:43 am
Simon Bachmann Jun 04, 2017 04:38 pm
Francois Vogel Jun 05, 2017 06:34 pm
Brad Lanam Jun 06, 2017 06:59 pm
Simon Bachmann Jun 06, 2017 08:10 pm
Brad Lanam Jun 06, 2017 08:23 pm
Simon Bachmann Jun 10, 2017 12:02 pm
Christian Gollwitzer Jun 12, 2017 06:25 am
Simon Bachmann Jun 24, 2017 08:16 am
Francois Vogel Jun 30, 2017 05:22 pm
Harald Oehlmann Jun 13, 2017 01:48 pm
Donal K. Fellows Jun 06, 2017 10:47 pm
Simon Bachmann Jun 06, 2017 08:11 pm
Harald Oehlmann Apr 21, 2017 07:01 am
Simon Bachmann Jul 11, 2017 07:46 pm
Messages in this thread