bug-gawk
[Top][All Lists]
Advanced

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

Re: [bug-gawk] eval in gawk as a regular command


From: Andrew J. Schorr
Subject: Re: [bug-gawk] eval in gawk as a regular command
Date: Fri, 1 Jan 2016 11:31:47 -0500
User-agent: Mutt/1.5.23 (2014-03-12)

On Wed, Dec 30, 2015 at 07:06:29AM -0600, Peng Yu wrote:
> Why not, considering that many other languages have eval? This can
> dramatically increase the expression power of a language.

In addition to Arnold's points, I think it's worth mentioning that
gawk already has the ability to call functions indirectly and the
ability to access variables indirectly through the SYMTAB array. So
there are already some safer language facilities that allow you
to execute code that is a function of the input.

Regards,
Andy



reply via email to

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