UnrealScript Learning Experience

Source: Internet
Author: User
Tags garbage collection lowercase

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"

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.