[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-kawa] [bug #27555] compile-file doesn't show errors
From: |
Per Bothner |
Subject: |
[Bug-kawa] [bug #27555] compile-file doesn't show errors |
Date: |
Thu, 01 Oct 2009 03:39:19 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.3) Gecko/20090909 Fedora/3.5.3-1.fc11 Firefox/3.5.3 |
Update of bug #27555 (project kawa):
Assigned to: None => bothner
_______________________________________________________
Follow-up Comment #1:
I believe compile-file *does* show errors - just not warnings.
However, it shows errors by throwing an exception, rather than by printing to
a port. Printing the exception reports the errors.
I feel uncomfortable with having a "tool" like compile-file write to the
current output (or error) port. That makes it harder to invoke the tool
programmatically. Yes, it is possible to change the current output port, but
it seems ugly.
I'm also concerned about duplicate error message. Your patch prints the
errors and warnings, then if there is an error, we throw an exception, which
gets reported - by printing the exception.
Finally, compile-file is not really recommended these days. It creates a zip
file, which you then need to load. Load interacts badly with lexical scoping,
compile-time analysis, and hence performance and error checking. I strong
discourage use of load, and hence also of compile-file.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?27555>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/