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 a0b56ca  Update private-constructors.md
a0b56ca is described below

commit a0b56cab8455ad3d96e69b5c0210475d73075126
Author: Carlos Rovira <[email protected]>
AuthorDate: Wed May 29 19:49:04 2019 +0200

    Update private-constructors.md
    
    Since now is enabled by default updating docs to reflect it. for disabling 
from command line I assume the instructions should be mxmlc 
-allow-private-constructors=false MyApp.mxml, please correct this if I'm wrong. 
Thanks
---
 welcome/features/actionscript/private-constructors.md | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/welcome/features/actionscript/private-constructors.md 
b/welcome/features/actionscript/private-constructors.md
index b6dd781..fb568da 100644
--- a/welcome/features/actionscript/private-constructors.md
+++ b/welcome/features/actionscript/private-constructors.md
@@ -27,10 +27,10 @@ title: Private constructors in ActionScript
 
 ## Enable private constructors
 
-Like other [new ActionScript language 
features](welcome/features/as3.html#new-actionscript-language-features-in-royale)
 that Royale adds, private constructors are optional and disabled by default. 
To enable private constructors in your application, use the 
`-allow-private-constructors` compiler option.
+Like other [new ActionScript language 
features](welcome/features/as3.html#new-actionscript-language-features-in-royale)
 that Royale adds, are enabled by default. To disable private constructors in 
your application, use the `-allow-private-constructors` compiler option.
 
 ```sh
-mxmlc -allow-private-constructors MyApp.mxml
+mxmlc -allow-private-constructors=false MyApp.mxml
 ```
 
 ## Code example
@@ -102,4 +102,4 @@ Checking whether a constructor is private or not happens at 
compile-time only. H
 
 If a SWC library contains classes with private constructors, applications 
using that library must also enable private constructors 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 private constructors and any of [...]
\ 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 private constructors and any of [...]

Reply via email to