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