Harbour (programming language): Difference between revisions

Content deleted Content added
Davidwr (talk | contribs)
m replace enclose="none" with inline in <syntaxhighlight...> to remove page from Category:Pages using deprecated enclose attributes
Line 116:
 
Complex Types may also be represent as literal values:
* Array: <syntaxhighlight lang=visualfoxpro enclose=noneinline>{ "String", 1, { "Nested Array" }, .T., FunctionCall(), @FunctionPointer() }</syntaxhighlight>
* [[CodeBlock]]: <syntaxhighlight lang=visualfoxpro enclose=noneinline>{ |Arg1, ArgN| Arg1 := ArgN + OuterVar + FunctionCall() }</syntaxhighlight>
* Hash: <syntaxhighlight lang=visualfoxpro enclose=noneinline>{ "Name" => "John", 1 => "Numeric key", { "Nested" => "Hash" } }</syntaxhighlight>
Hashes may use ''any'' type including other Hashes as the ''Key'' for any element. Hashes and Arrays may contain ''any'' type as the ''Value'' of any member, including nesting arrays, and Hashes.