bug-gawk
[Top][All Lists]
Advanced

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

Re: [bug-gawk] inside awk script check that -M/--bignum given on command


From: Andrew J. Schorr
Subject: Re: [bug-gawk] inside awk script check that -M/--bignum given on command line?
Date: Mon, 8 Jan 2018 10:25:25 -0500
User-agent: Mutt/1.5.21 (2010-09-15)

On Mon, Jan 08, 2018 at 07:39:17AM -0700, address@hidden wrote:
> Looks good; no need for the @code{} inside a code block.
> Otherwise, OK to commit to gawk-4.2-stable.

OK. I pushed it to gawk-4.2-stable.

> W.R.T. End rule order, yes, you do have to make sure that assert.awk
> (or a theoretical abort.awk) is the first part of the whole awk program.

Yes -- it's slightly fragile. I must confess that I personally think having an
abort statement in the language would be a nice addition (simply because it
would save typing and reduce code clutter), but I'm pretty sure you will
adamantly resist this. :-) It seems that TAWK has this, and you document it in
your O'Reilly book about sed & awk. I wonder whether it could be implemented in
an extension library. I suppose the function could simply call 'exit', and that
would eliminate the ordering fragility of using an include library. The problem
with using a library is that we lose the ability to retain the default exit
status if none is provided to the function...

Regards,
Andy



reply via email to

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