| Store | Cart

Re: [TCLCORE] TIP #457: Add Support for Named Arguments (rev 1.5)

From: Brian Griffin <bria...@easystreet.net>
Tue, 17 Jan 2017 22:49:08 +0000
On Jan 17, 2017, at 2:18 PM, Mathieu Lafon <mla...@gmail.com> wrote:
> > Hello Brian,> > On Tue, Jan 17, 2017 at 1:54 AM, Brian Griffin <bria...@easystreet.net> wrote:> >>   * It seems somewhat limited to have this feature only apply to proc's without a corresponding extension to the C API for providing the same compatibility for non-proc commands.  Users of [call] may find it confusing to have it work with some commands and not others since it's not immediately obvious which commands are implement as procs and which are implemented in C.> > It is easy to add a way for non-proc commands to define argument names> and default values and be able to be called by [call]. But it's not> possible to automatically handle non-proc commands for which we do not> have arguments definition. This may be even more confusing if some> non-proc commands can be used and the others can't. Do you think it> should still be added?

The mechanism should be available.  In addition, adding the arg names and defaults to Tcl and Tk commands should be considered.    

-Brian


------------------------------------------------------------------------------
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
Mathieu Lafon Dec 30, 2016 01:17 am
Mathieu Lafon Jan 16, 2017 10:32 pm
Brian Griffin Jan 17, 2017 12:54 am
Mathieu Lafon Jan 17, 2017 10:18 pm
Brian Griffin Jan 17, 2017 10:49 pm
Messages in this thread