[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: GAWK does not like "default" as an argument name
From: |
Paul Jarc |
Subject: |
Re: GAWK does not like "default" as an argument name |
Date: |
Sun, 30 Jul 2006 23:58:53 -0400 |
User-agent: |
Gnus/5.110003 (No Gnus v0.3) Emacs/21.4 (gnu/linux) |
"Nielsen, Dan \(GE, Corporate\)" <address@hidden> wrote:
> # ZERROR7.AWK - GAWK doesn't like "default" in argument list
> # Change "default" to "Default" or "_default" and it works fine.
> # How to run: GAWK -f C:\AWK\ZERROR7.AWK
> BEGIN { x() }
> function x(default) { printf("ok") }
"default" is a keyword of the language, like "function" or "if".
Keywords can't be used as identifiers.
paul