bug-gnu-utils
[Top][All Lists]
Advanced

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

Re: do_lint `delete`


From: Aharon Robbins
Subject: Re: do_lint `delete`
Date: Tue, 16 Jul 2002 05:42:49 +0300

> Date: Mon, 15 Jul 2002 17:39:56 -0400 (EDT)
> From: "Aaron S. Hawley" <address@hidden>
> To: address@hidden
> Subject: do_lint `delete`
>
> `delete foo[iggy]' should probably be caught by --lint
> (line 528 of awkgram.y)
>
> %>gawk --lint 'BEGIN { delete array; }'
> dgawk: cmd. line:1: warning: `delete array' is a gawk extension
> %>gawk --lint 'BEGIN { delete array[1]; }'
> %>

What is the error that --lint should catch?  It is not an
error to delete an element that isn't there.  If you think
it ought to be a warning, there might be room to discuss that.

Arnold



reply via email to

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