unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
* Trouble using (current-filename)
@ 2012-02-14 18:57 Mark H Weaver
  2012-02-15 22:23 ` Andy Wingo
  0 siblings, 1 reply; 21+ messages in thread
From: Mark H Weaver @ 2012-02-14 18:57 UTC (permalink / raw)
  To: guile-devel

I put the following test module in my load path:

  (define-module (current-filename-fail)
    :export (my-filename))
  (define my-filename (current-filename))
  (define (force-a-warning-message) (identity 1 2 3))

And this is what I see with Guile 2.0.5:

  GNU Guile 2.0.5
  Copyright (C) 1995-2012 Free Software Foundation, Inc.
  
  Guile comes with ABSOLUTELY NO WARRANTY; for details type `,show w'.
  This program is free software, and you are welcome to redistribute it
  under certain conditions; type `,show c' for details.
  
  Enter `,help' for help.
  scheme@(guile-user)> ,use (current-filename-fail)
  ;;; note: auto-compilation is enabled, set GUILE_AUTO_COMPILE=0
  ;;;       or pass the --no-auto-compile argument to disable.
  ;;; compiling /home/mhw/guile-modules/current-filename-fail.scm
  ;;; current-filename-fail.scm:4:34: warning: possibly wrong number of arguments to `identity'
  ;;; compiled /home/mhw/.cache/guile/ccache/2.0-LE-4-2.0/home/mhw/guile-modules/current-filename-fail.scm.go
  scheme@(guile-user)> my-filename
  $1 = #f

The (force-a-warning-message) line shows that source information is
available.  The same thing happens if I remove that line, or if I try
with stable-2.0.

What am I doing wrong?

    Thanks,
      Mark



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

end of thread, other threads:[~2012-03-21 21:11 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-14 18:57 Trouble using (current-filename) Mark H Weaver
2012-02-15 22:23 ` Andy Wingo
2012-02-16 21:34   ` Ludovic Courtès
2012-02-16 22:25     ` Andy Wingo
2012-02-17 22:49       ` Ludovic Courtès
2012-02-18 20:58         ` Andy Wingo
2012-02-19 14:10           ` Ludovic Courtès
2012-02-19 20:44             ` Andy Wingo
2012-02-19 21:02               ` Ludovic Courtès
2012-02-19 21:23                 ` Andy Wingo
2012-02-19 21:30                   ` Noah Lavine
2012-02-20 13:12                     ` Ludovic Courtès
2012-02-21 20:48             ` Neil Jerram
2012-02-21 20:52               ` Ludovic Courtès
2012-02-21 21:00                 ` Neil Jerram
2012-03-15  2:00                   ` Noah Lavine
2012-03-15  8:34                     ` Neil Jerram
2012-03-15 16:41                       ` Ludovic Courtès
2012-03-15 21:31                         ` Andy Wingo
2012-03-21 21:11                           ` Ludovic Courtès
2012-02-21 17:38   ` Mark H Weaver

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).