This is an automated email from the ASF dual-hosted git repository.

joshtynjala pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/royale-docs.git

commit 9ce7af08b1838bc2d2f2f38528700aa3aa17ffa4
Author: Josh Tynjala <[email protected]>
AuthorDate: Tue Jun 20 09:46:21 2023 -0700

    reword description of compiler option for new features
    
    Originally, they were disabled by default, but when someone enabled them by 
default instead, they kept the same wording, which became awkward. Also, some 
features may not be enabled by default to avoid breaking backwards 
compatibility.
---
 features/as3/abstract-classes.md     | 4 ++--
 features/as3/private-constructors.md | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/features/as3/abstract-classes.md b/features/as3/abstract-classes.md
index e9306a6..6e37fa0 100644
--- a/features/as3/abstract-classes.md
+++ b/features/as3/abstract-classes.md
@@ -26,9 +26,9 @@ permalink: /features/as3/abstract-classes
 
 [Apache Royale](https://royale.apache.org/){:target='_blank'} adds support for 
declaring `abstract` classes in [ActionScript](features/as3). An abstract class 
cannot be instantiated using the `new` keyword, meaning that it must be 
subclassed. Additionally, an abstract class may declare `abstract` methods that 
do not have a function body. Abstract methods must be implemented by the 
concrete subclass, similar to how the methods of an interface must also be 
implemented.
 
-## Enable abstract classes
+## Compiler option
 
-Like other [new ActionScript language 
features](features/as3#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.
+Royale enables abstract classes by default. To disable abstract classes in 
your application, use the `-allow-abstract-classes` compiler option.
 
 ```sh
 mxmlc -allow-abstract-classes=false MyApp.mxml
diff --git a/features/as3/private-constructors.md 
b/features/as3/private-constructors.md
index 7c548e1..6c17865 100644
--- a/features/as3/private-constructors.md
+++ b/features/as3/private-constructors.md
@@ -26,9 +26,9 @@ permalink: /features/as3/private-constructors
 
 [Apache Royale](https://royale.apache.org/){:target='_blank'} adds support for 
declaring the constructor of a class `private` instead of `public` in 
[ActionScript](features/as3). When a constructor is private, it cannot be 
instantiated with the `new` keyword outside of the class where it is defined. 
Private constructors are commonly used for implementing the *singleton* design 
pattern, which is when only one instance of a particular class should ever be 
created.
 
-## Enable private constructors
+## Compiler option
 
-Like other [new ActionScript language 
features](features/as3#new-actionscript-language-features-in-royale) that 
Royale adds, private constructors are enabled by default. To disable private 
constructors in your application, use the `-allow-private-constructors` 
compiler option.
+Royale enables private constructors by default. To disable private 
constructors in your application, use the `-allow-private-constructors` 
compiler option.
 
 ```sh
 mxmlc -allow-private-constructors=false MyApp.mxml

Reply via email to