[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [gforth] Proposed: Issue warning when file ends in compilation mode
From: |
Bernd Paysan |
Subject: |
Re: [gforth] Proposed: Issue warning when file ends in compilation mode |
Date: |
Fri, 17 Jan 2014 20:09:14 +0100 |
User-agent: |
KMail/4.11.4 (Linux/3.11.6-4-desktop; KDE/4.11.4; x86_64; ; ) |
Am Freitag, 17. Januar 2014, 09:37:02 schrieb Sam Putman:
> Hi,
>
> It is almost never the case that one wants to end a file while still
> compiling. 97% of the time this means a trailing semicolon was eliminated
> during some text operation.
>
> By the time the error occurs, one is in another file, being told that some
> word doesn't exist (because the include got compiled!).
>
> It would be nice if Gforth issued a warning, in the event that it reaches
> EOF in compile mode.
>
> Thanks for your consideration.
Yes, makes sense. It also makes sense to print the same editor-friendly
locaton frame for every warning as well as for every error. I added a
warning" <string>"
statement which works like abort" <string>", but prints a warning message
instead.
--
Bernd Paysan
"If you want it done right, you have to do it yourself"
http://bernd-paysan.de/
signature.asc
Description: This is a digitally signed message part.