greg-dove commented on issue #1183: URL: https://github.com/apache/royale-asjs/issues/1183#issuecomment-1076790497
Actually this does work in AS3. The example is objectively not good code because it is essentially a double construction and provides no incremental value. But in general the constructor should accept XML as well. The problem is that the internal stringificatication is not viable for 'copying' the passed in XML arbitrarily, because XML stringification rules do vary depending on the content being stringified. I can work on this over the coming weekend - from some quick initial testing using the 'copy()' method it has highlighted other areas of need (including compiler support for equality checks). Meanwhile for the example in question, it is simply OK to avoid the double-construction. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
