From: erg Date: Fri, 21 Dec 2007 04:28:53 +0000 (+0000) Subject: Make clear that only associative arrays are provided, and note X-Git-Tag: LAST_LIBGRAPH~32^2~4960 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1a404c135185586f023aacbd615d2e2c9b1d8eac;p=graphviz Make clear that only associative arrays are provided, and note the use of the subscript type in an array declaration. --- diff --git a/cmd/gvpr/gvpr.1 b/cmd/gvpr/gvpr.1 index 9ee52db9d..e3f42aecf 100644 --- a/cmd/gvpr/gvpr.1 +++ b/cmd/gvpr/gvpr.1 @@ -194,12 +194,15 @@ is a single scope. Array declarations have the form: .ta \w'\f(CWdelete array[expression]'u .RS .nf -\fI type array \fB[\fP var \fB]\fR +\fI type array \fB[\fP type0 \fB]\fR .fi .RE .DT .PP -where the \fI var \fP is optional. As in C, variables and arrays must +where the \fI type0 \fP is optional. If it is supplied, the parser will +enforce that all array subscripts have the specified type. If it is +not supplied, objects of all types can be used as subscripts. +As in C, variables and arrays must be declared. In particular, an undeclared variable will be interpreted as the name of an attribute of a node, edge or graph, depending on the context.