]> granicus.if.org Git - graphviz/commitdiff
Make clear that only associative arrays are provided, and note
authorerg <devnull@localhost>
Fri, 21 Dec 2007 04:28:53 +0000 (04:28 +0000)
committererg <devnull@localhost>
Fri, 21 Dec 2007 04:28:53 +0000 (04:28 +0000)
the use of the subscript type in an array declaration.

cmd/gvpr/gvpr.1

index 9ee52db9df9341d8598c836f0233785a38841919..e3f42aecf66ef139fe75822fd7404f82ee33d8d0 100644 (file)
@@ -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.