royale-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From andr...@apache.org
Subject [royale-docs] branch develop updated: Update circular-dependencies.md
Date Tue, 20 Feb 2018 01:10:37 GMT
This is an automated email from the ASF dual-hosted git repository.

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


The following commit(s) were added to refs/heads/develop by this push:
     new 920abf7  Update circular-dependencies.md
920abf7 is described below

commit 920abf7df15f3b599ef39fd64f59d8c60e5955ea
Author: Andrew Wetmore <andrew@cottage14.com>
AuthorDate: Mon Feb 19 21:10:34 2018 -0400

    Update circular-dependencies.md
    
    Continuing the edit.
---
 .../migrate-an-existing-app/circular-dependencies.md      | 15 +++++++++++++--
 1 file changed, 13 insertions(+), 2 deletions(-)

diff --git a/create-an-application/migrate-an-existing-app/circular-dependencies.md b/create-an-application/migrate-an-existing-app/circular-dependencies.md
index 0cfb7a3..8f40440 100644
--- a/create-an-application/migrate-an-existing-app/circular-dependencies.md
+++ b/create-an-application/migrate-an-existing-app/circular-dependencies.md
@@ -26,11 +26,22 @@ public class A extends B
 
 public class B extends A
 ```
-Circular dependencies cause a tight coupling of what should be independent modules. THis
makes it difficult to re-use one module without its partner. When a developer makes a small
change in one of the co-dependent modules, there may be unexpected effects on the other modules,
leading to poor application behavior or compile-time errors. in the worst case, a circular
dependency cand generate an infinite recursion leading to a crash or hanging the system.
+Circular dependencies cause a tight coupling of what should be independent modules. This
makes it difficult to re-use one module without its partner. When a developer makes a small
change in one of the co-dependent modules, there may be unexpected effects on the other module,
leading to poor application behavior or compile-time errors. in the worst case, a circular
dependency can generate an infinite recursion leading to a crash or hanging the system.
 
 ## What Flex allows
 
-*This material will be available soon.*
+You can get away with some circular dependencies when developing an application in Flex or
Royale that will be compiled for use in Flash or the AIR environment. You can write code like
this:
+
+```
+public class Child {
+  public var parent:Parent;
+}
+
+public class Parent {
+  public var child:Child;
+}
+```
+In Flash and AIR the runtime constructs both classes before type-checking for parent and
child properties. That happens only when the application code has initialized and starts to
run.
 
 ## What compiling for JavaScript requires
 

-- 
To stop receiving notification emails like this one, please contact
andreww@apache.org.

Mime
View raw message