Re: "bind" or "Bind"?

New Message Reply Date view Thread view Subject view Author view

From: Jonathan Guyer (jguyer@HIS.COM)
Date: 6 Aug 98, 23:26 EST


From: Jonathan Guyer <jguyer@HIS.COM>
Subject: Re: "bind" or "Bind"?

At 6:48 AM -0400 8/6/1998, Juan Falgueras wrote:
>What is the difference between "bind" and "Bind"?

>From Changes, 7.1b1:

* renamed bind to Bind and menu to Menu for future compatibility
  (but left in procs so old versions still work).  Its completely
  backwards compatible provided any menu you create uses just 'menu'
  for itself and its submenus or just 'Menu' for itself and its
  submenus.  Mixing (e.g. Menu -n Blah {item1 item2 {menu -n submenu})
  will not work.  Obviously you should just rename everything to the
  upper-case version.  These are the last two of Alpha's commands which
  conflict with Tcl/Tk (as of version Tcl 8.1 at least), which will
  make any future transition easier.

>Which must we use in Prefs, Bind or bind?

Bind

>It seems that bind is more powerful since it makes a global Bind,  is this
>correct?

No, the "uplevel 1" should force Bind to execute in the same stack space
that bind does. As far as I can tell, Alpha currently should do exactly the
same thing for "bind" and "Bind" but, when Tcl 8 is implemented, this will
no longer be true.

>Why there is not a command "ascii" equivalent (Ascii)?

You want capitalized versions of all the procs? 8^)

I assume it's because there's no conflict in Tcl 8 with "ascii" the way
there is with "bind" and "menu".

__________________________________________________________________
  Jonathan E. Guyer
  <http://www.his.com/~jguyer/>


New Message Reply Date view Thread view Subject view Author view

This archive was generated by das@users.sourceforge.net with hypermail 2b29 on 31 Mar 01, 11:50 EST