UnrealScript Learning Experience
version:1.0.0
Author:freeknight
1:us Design Goals
Within 1> us, there is internal support for time, state and network, which simplifies some aspects of complex C + + programming.
2> is similar to Java and offers the following features and features.
@ There is no pointer.
@ There is an automatic garbage collection.
@ A simple inheritance class relationship.
At compile time, strong type checking is performed.
@ Like the C/c++/java code familiar use way.
3> to improve the simplicity and power of program development, US sacrificed execution speed. 2: string operator
$ two concatenated strings.
For example: Log ("A" $ "B"); Output "AB"
The $= connects two strings and assigns the value to the previous one.
For example: MyString $= "B"; Equivalent to MyString = MyString $ "B"
@ Connect two strings, with a space between them.
For example: Log ("A" @ "B"); Output "A B"
@= is similar to $=, which is equivalent to a space interval in the middle.
For example: MyString @= "B"; Equivalent to MyString = MyString @ "B"
< alphabetical sort returns true if the first letter of the initial string, the ASC code is less than the first letter of the second string. (Note: case sensitivity is differentiated.) Uppercase ASC codes are smaller than all lowercase letters. )
Example: "Free" < "Knight"//True
> Alphabetical Sort returns True if the first letter of the initial string, the ASC code is greater than the first letter of the second string. (Note: case sensitivity is differentiated.) Uppercase ASC codes are smaller than all lowercase letters. )
For example: "Free" < "Knight"//False
<= Alphabetical Sort if the first letter of a string, the ASC code is less than the first letter of the second string, or the two strings are identical, both return true. (Note: case sensitivity is differentiated.) Uppercase ASC codes are smaller than all lowercase letters. )
For example: "Free" <= "Knight"//True
' Free ' <= "free"//True
>= Alphabetical Sort if the first letter of a string, the ASC code is greater than the first letter of the second string, or the two strings are identical, both return true. (Note: case sensitivity is differentiated.) Uppercase ASC codes are smaller than all lowercase letters. )
For example: "Free" >= "Knight"//True
' Free ' >= "free"//True
= = Returns True if the two strings are identical (note: case sensitive)
For example: "free" = = "free"//False
"Free" = = "free"//True
! = Returns True if two strings are not exactly the same (note: case sensitive)
For example: "free"! = "Free"//False
"Free"! = "Free"//False
~= returns True if two strings are identical (note: case is no longer differentiated)
For example: "Free" ~= "free"//True
' Free ' ~= "free"//True
-= Removes the same part of the preceding string as B. (Note: case sensitive)
For example: MyString = "Free A:freefree";
MyString-= "free"; Log (MyString); Output "A:free"