Harbour (programming language): Difference between revisions

Content deleted Content added
Procedures and functions: fix syntaxhighlight error
Built-in data types: fix syntaxhighlight errors
Line 116:
 
Complex Types may also be represent as literal values:
* Array: <syntaxhighlight lang=visualfoxprofoxpro inline>{ "String", 1, { "Nested Array" }, .T., FunctionCall(), @FunctionPointer() }</syntaxhighlight>
* [[CodeBlock]]: <syntaxhighlight lang=visualfoxprofoxpro inline>{ |Arg1, ArgN| Arg1 := ArgN + OuterVar + FunctionCall() }</syntaxhighlight>
* Hash: <syntaxhighlight lang=visualfoxprofoxpro inline>{ "Name" => "John", 1 => "Numeric key", "Name2" => { "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.