39 lines
1.2 KiB
Plaintext
39 lines
1.2 KiB
Plaintext
Usage of statements, operators and keywords specific to ActionScript 2 does not allow to migrate to ActionScript 3. This includes "intrinsic" keyword, set variable statement and following list of operators:
|
|
|
|
* ``++<>++`` (inequality) - use ``++!=++`` instead
|
|
* ``++add++`` (concatenation (strings)) - use ``+`` instead
|
|
* ``++eq++`` (equality (strings)) - use ``++==++`` instead
|
|
* ``++ne++`` (not equal (strings)) - use ``++!=++`` instead
|
|
* ``++lt++`` (less than (strings)) - use ``++<++`` instead
|
|
* ``++le++`` (less than or equal to (strings)) - use ``++<=++`` instead
|
|
* ``++gt++`` (greater than (strings)) - use ``++>++`` instead
|
|
* ``++ge++`` (greater than or equal to (strings)) - use ``++>=++`` instead
|
|
* ``++and++`` (logical and) - use ``++&&++`` instead
|
|
* ``++or++`` (logical or) - use ``++||++`` instead
|
|
* ``++not++`` (logical not) - use ``++!++`` instead
|
|
|
|
|
|
== Noncompliant Code Example
|
|
|
|
[source,flex]
|
|
----
|
|
if (true != false) { // Compliant
|
|
}
|
|
|
|
if (true <> false) { // Noncompliant
|
|
}
|
|
|
|
set("varName", value); // Noncompliant
|
|
varName = value; // Compliant
|
|
----
|
|
|
|
ifdef::env-github,rspecator-view[]
|
|
|
|
'''
|
|
== Implementation Specification
|
|
(visible only on this page)
|
|
|
|
include::message.adoc[]
|
|
|
|
endif::env-github,rspecator-view[]
|