* tk-stack-mark
@ 2009-11-19 17:11 Daniel Ridge
2009-11-21 23:11 ` tk-stack-mark Ludovic Courtès
0 siblings, 1 reply; 2+ messages in thread
From: Daniel Ridge @ 2009-11-19 17:11 UTC (permalink / raw)
To: bug-guile
Bug in ice-9/boot-9.scm:save-stack ?
I notice that save-stack references tk-stack-mark which does not
appear to exist or to be the obvious transposition of any existing
symbol name.
My uninformed intuition is that tk-stack-mark is brought in by some
optional package not shipped by default with Guile (perhaps guile-tk?).
I never cause this bug, but I do check my Scheme system with a semi-
static analysis that complains about tk-stack-mark being undefined and
I would prefer not to special-case a rule for save-stack. Perhaps all
interests could be served by:
...
((tk-stack)
(apply make-stack #t save-stack (if (defined? 'tk-stack-mark) tk-
stack-mark (stack-id #t)) #t 0 narrowing)
...
or by some cond-expand foo or by outright banishment of this case?
Thanks,
Dan
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: tk-stack-mark
2009-11-19 17:11 tk-stack-mark Daniel Ridge
@ 2009-11-21 23:11 ` Ludovic Courtès
0 siblings, 0 replies; 2+ messages in thread
From: Ludovic Courtès @ 2009-11-21 23:11 UTC (permalink / raw)
To: bug-guile
Hello,
Daniel Ridge <dsridge@super.org> writes:
> I notice that save-stack references tk-stack-mark which does not
> appear to exist or to be the obvious transposition of any existing
> symbol name.
This has been fixed recently, after having been identified by
‘-Wunbound-variable’ in 1.9 (commit
b70f43e318b60f00776fae5580914f31937ec0d8).
Out of curiosity, which static analysis system did you use?
For 1.8, Guile-Lint works very well
(http://user42.tuxfamily.org/guile-lint/index.html); for 1.9, it
doesn’t, but the compiler has a few ‘-W’ switches to report similar
issues.
Thanks,
Ludo’.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-11-21 23:11 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-19 17:11 tk-stack-mark Daniel Ridge
2009-11-21 23:11 ` tk-stack-mark Ludovic Courtès
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).