Difference between pages "String" and "Category:Allocation Types"

From Mesham
(Difference between pages)
Jump to navigationJump to search
 
(Created page with 'Category:Composite Types')
 
Line 1: Line 1:
== Syntax ==
+
[[Category:Composite Types]]
 
 
String
 
 
 
== Semantics ==
 
 
 
A string of characters. All strings are immutable, concatenation of strings will in fact create a new string.
 
 
 
=== Default typing ===
 
 
 
{{ElementDefaultTypes}}
 
 
 
== Example ==
 
 
 
function void main() {
 
    var i:String;
 
    var p:="Hello World!";
 
};
 
 
 
In this example variable ''i'' is explicitly declared to be of type ''String''. Variable ''p'' is found, via type inference, also to be of type ''String''.
 
 
 
''Since: Version 0.41b''
 
 
 
== Communication ==
 
 
 
{{ElementTypeCommunication}}
 
 
 
[[Category:Element Types]]
 
[[Category:Type Library]]
 

Revision as of 00:29, 4 January 2010