Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Indirect function calls patch for gawk available
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Steffen Schuler  
View profile  
 More options Jan 22 2009, 11:49 am
Newsgroups: comp.lang.awk
From: schuler.stef...@gmail.com (Steffen Schuler)
Date: 22 Jan 2009 16:49:35 GMT
Local: Thurs, Jan 22 2009 11:49 am
Subject: Re: Indirect function calls patch for gawk available

Kenny McCormack <gaze...@shell.xmission.com> wrote:
> In article <gl9c76$5f...@heraldo.rediris.es>,
> Manuel Collado  <m.coll...@invalid.domain> wrote:

>> [...]
>>How about a syntax like

>>    call( "funcname", arguments...)

>>It seems more in the style of AWK.

> Indeed.  That is exactly how TAWK does it.

> There is, in fact, both call() [with the above syntax] and calla(),
> which takes an array, like:

>    function foo(a,b,c) {print a,b,c}
>    BEGIN {split("quick brown fox",A);calla("foo",A)}

These are really good suggestions. Thank you Manuel and Kenny.
I like also the TAWK-syntax with call("foo", arg1, ...) and
calla("foo", array). This seems really natural and AWK-ish.

--
Steffen Schuler (goedel) <schuler.stef...@gmail.com>
Key ID: 0x42C5D853 / Key-server: pgp.mit.edu


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.