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

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

Re: do_lint `delete`


From: Aaron S. Hawley
Subject: Re: do_lint `delete`
Date: Tue, 16 Jul 2002 00:38:29 -0400 (EDT)

On Tue, 16 Jul 2002, Aharon Robbins wrote:

> > `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
>

i'm not adamant about this, i just figured it should generate the same
warning.

on another note, what is the prominent gawk author's thoughts on 'true'
multi-dimensional arrays.  I'm interested both in (g)awk philosophy and
technically (what would it take to implement)?

hope its not an FAQ.
/a

-- 
__________________________________________
PINE 4.44 Mailer - www.washington.edu/pine





reply via email to

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