This is an automated email from the ASF dual-hosted git repository.
carlosrovira pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/royale-docs.git
The following commit(s) were added to refs/heads/master by this push:
new 4c1f3d9 Update abstract-classes.md
4c1f3d9 is described below
commit 4c1f3d9891c7669d8837b792c514251c55d4ef9f
Author: Carlos Rovira <[email protected]>
AuthorDate: Wed May 29 20:03:30 2019 +0200
Update abstract-classes.md
updating docs here to reflect that now this is enabled by default. Again
consider correct the disabling on command line if is wrong (mxmlc
-allow-abstract-classes=false MyApp.mxml)
---
welcome/features/actionscript/abstract-classes.md | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/welcome/features/actionscript/abstract-classes.md
b/welcome/features/actionscript/abstract-classes.md
index 51b7e5f..ab666b1 100644
--- a/welcome/features/actionscript/abstract-classes.md
+++ b/welcome/features/actionscript/abstract-classes.md
@@ -27,10 +27,10 @@ title: Abstract classes in ActionScript
## Enable abstract classes
-Like other [new ActionScript language
features](welcome/features/as3.html#new-actionscript-language-features-in-royale)
that Royale adds, abstract classes are optional and disabled by default. To
enable abstract classes in your application, use the `-allow-abstract-classes`
compiler option.
+Like other [new ActionScript language
features](welcome/features/as3.html#new-actionscript-language-features-in-royale)
that Royale adds, abstract classes are enabled by default. To disable abstract
classes in your application, use the `-allow-abstract-classes` compiler option.
```sh
-mxmlc -allow-abstract-classes MyApp.mxml
+mxmlc -allow-abstract-classes=false MyApp.mxml
```
## Code example
@@ -116,4 +116,4 @@ Checking whether a class is abstract happens at
compile-time only. However, by u
If a SWC library contains classes with abstract classes, applications using
that library must also enable abstract classes before the compiler will enforce
any restrictions.
-Other ActionScript compilers, such as the one in the [Apache Flex
SDK](https://flex.apache.org/){:target='_blank'}, may not recognize or enforce
private constructors. Attemping to pass source code or SWC libraries that
contain classes with private constructors to another compiler may result in
compile-time errors or unexpected behavior at run-time. In other words, to
write 100% portable ActionScript code that works with any compiler, you should
avoid using abstract classes and any of Roy [...]
\ No newline at end of file
+Other ActionScript compilers, such as the one in the [Apache Flex
SDK](https://flex.apache.org/){:target='_blank'}, may not recognize or enforce
private constructors. Attemping to pass source code or SWC libraries that
contain classes with private constructors to another compiler may result in
compile-time errors or unexpected behavior at run-time. In other words, to
write 100% portable ActionScript code that works with any compiler, you should
avoid using abstract classes and any of Roy [...]