Git development
 help / color / mirror / Atom feed
* [RFH - Tcl/Tk] use of procedure before declaration?
@ 2017-01-16 22:44 Philip Oakley
  2017-01-17 11:29 ` Johannes Schindelin
  0 siblings, 1 reply; 4+ messages in thread
From: Philip Oakley @ 2017-01-16 22:44 UTC (permalink / raw)
  To: Git List; +Cc: Pat Thoyts

I'm looking into a user git-gui problem
(https://github.com/git-for-windows/git/issues/1014) that I'd seen in the
past - I'd started some patches back in Dec 2015
http://public-inbox.org/git/1450310287-4936-1-git-send-email-philipoakley@iee.org/

I'm trying to make sure I have covered the corner cases correctly, and I'm
not sure if the current code actually works as advertised.

In
https://github.com/git/git/blob/master/git-gui/lib/choose_repository.tcl#L242
the procedure `_unset_recentrepo` is called, however the procedure isn't
declared until line 248. My reading of the various Tcl tutorials suggest
(but not explictly) that this isn't the right way.

Should 3c6a287 ("git-gui: Keep repo_config(gui.recentrepos) and .gitconfig
in sync", 2010-01-23) have declared `proc _unset_recentrepo {p}` before
`proc _get_recentrepos {}` ?

--

Philip


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-01-18  6:58 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-01-16 22:44 [RFH - Tcl/Tk] use of procedure before declaration? Philip Oakley
2017-01-17 11:29 ` Johannes Schindelin
2017-01-17 23:32   ` Philip Oakley
2017-01-18  6:43   ` Konstantin Khomoutov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox