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: Peng Yu
Subject: Re: [bug-gawk] eval in gawk as a regular command
Date: Fri, 9 Nov 2018 22:48:51 -0600

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

Could you show me some examples of how to mimic some feature of eval()
using the features that you mentioned? Thanks.

-- 
Regards,
Peng



reply via email to

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