Re: Reporting possibly unbound variables

2009-10-20 Thread Andy Wingo
On Tue 20 Oct 2009 10:08, l...@gnu.org (Ludovic Courtès) writes: > Andy: What about leaving both ‘eval-case’ and ‘eval-when’ for 2.0, and > only deprecating ‘eval-case’ in the next stable series? The problem is that eval-case has really murky semantics -- to me at least. We've *never* needed to u

Re: Reporting possibly unbound variables

2009-10-20 Thread Ludovic Courtès
Hello! Andy: What about leaving both ‘eval-case’ and ‘eval-when’ for 2.0, and only deprecating ‘eval-case’ in the next stable series? Thanks, Ludo’.

Re: Reporting possibly unbound variables

2009-10-19 Thread Neil Jerram
Andy Wingo writes: > On Wed 07 Oct 2009 22:27, Neil Jerram writes: > >> On a loosely related point, I notice that we have deprecated eval-case >> in 1.9.x, in favour of eval-when. But 1.8.x only has eval-case; so >> isn't the deprecation going to make it more difficult to handle code >> that ha

Re: Reporting possibly unbound variables

2009-10-19 Thread Andy Wingo
On Wed 07 Oct 2009 22:27, Neil Jerram writes: > l...@gnu.org (Ludovic Courtès) writes: > >> It works pretty well, except for occurrences of ‘define-class’ et al., >> which lead to false positives because the code generated by these macros >> doesn’t use ‘define’ (this is to make sure a top-level

Re: Reporting possibly unbound variables

2009-10-19 Thread Andy Wingo
On Wed 07 Oct 2009 23:53, l...@gnu.org (Ludovic Courtès) writes: >> Alternatively, should we add a suitable eval-when to the next 1.8.x >> release, to help with this? > > That wouldn’t help much since it wouldn’t work with < 1.8.8. You could have a local module in your program that provides eval-

Re: Reporting possibly unbound variables

2009-10-07 Thread Ludovic Courtès
Hi, Neil Jerram writes: > Are there deeper problems with compilation and define-class / > module-define? E.g. is it possible that correct compilation of code > following a define-class or module-define would be dependent on > understanding the define-class/module-define properly? No. For any

Re: Reporting possibly unbound variables

2009-10-07 Thread Neil Jerram
l...@gnu.org (Ludovic Courtès) writes: > Hello, > > I just committed support for ‘-Wunbound-variable’: > > > http://git.sv.gnu.org/cgit/guile.git/commit/?id=f67ddf9dbfec851676806a2f3dff7eae539ac499 Looks great! > It works pretty well, except for occurrences of ‘define-class’ et al., > which l

Reporting possibly unbound variables

2009-10-06 Thread Ludovic Courtès
Hello, I just committed support for ‘-Wunbound-variable’: http://git.sv.gnu.org/cgit/guile.git/commit/?id=f67ddf9dbfec851676806a2f3dff7eae539ac499 It works pretty well, except for occurrences of ‘define-class’ et al., which lead to false positives because the code generated by these macros do