Thread a2p: Syntax error bei function? (7 answers)
Opened by Matthias at 2005-04-22 11:27

betterworld
 2005-04-26 00:57
#54139 #54139
User since
2003-08-21
2613 Artikel
ModeratorIn

user image
In der Manpage von gawk steht:
Quote
The left parenthesis in a function call is required to immediately fol-
low the function name, without any intervening white space. This is to
avoid a syntactic ambiguity with the concatenation operator. This
restriction does not apply to the built-in functions listed above.


Das bezieht sich zwar nur auf Funktionsaufrufe und nicht auf Deklarationen, aber ueber Letzteres habe ich nichts explizites gefunden. Nur Implizites:
Quote
Functions in AWK are defined as follows:

function name(parameter list) { statements }

Da ist auch kein Leerzeichen dazwischen.

View full thread a2p: Syntax error bei function?