You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@royale.apache.org by GitBox <gi...@apache.org> on 2019/11/17 17:58:17 UTC

[GitHub] [royale-compiler] Hydroper opened a new issue #100: Literal string to identify package public namespace

Hydroper opened a new issue #100: Literal string to identify package public namespace
URL: https://github.com/apache/royale-compiler/issues/100
 
 
   The owners of this repository might be familiar with ASC 2 codebase, so I 
   was wondering if you're able to support this at compile time:
   
   ```as3
   namespace dispns = 'flash.display'
   new dispns::Sprite
   // dispns should equal the public namespace of flash.display
   ```
   
   Normally the literal string assigned to namespaces (at compile time) is an URI, but in ECMAScript 4 it was also used to identify package names (at compile time).
   
   The following also works, but falls to wildcard type:
   
   ```as3
   const dispns = new Namespace('flash.display')
   new dispns::Sprite // *
   ```
   
   Consider this is a feature request.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services