gforth
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [gforth] Proposed: Issue warning when file ends in compilation mode


From: Sam Putman
Subject: Re: [gforth] Proposed: Issue warning when file ends in compilation mode
Date: Fri, 17 Jan 2014 12:49:22 -0800




On Fri, Jan 17, 2014 at 11:09 AM, Bernd Paysan <address@hidden> wrote:
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.

Excellent, thank you!

cheers,
-Sam. 

reply via email to

[Prev in Thread] Current Thread [Next in Thread]