royale-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] aharui commented on issue #57: Dependency error when extending class and implementing interface from "external" SWC library
Date Fri, 09 Nov 2018 23:57:32 GMT
aharui commented on issue #57: Dependency error when extending class and implementing interface
from "external" SWC library
URL: https://github.com/apache/royale-compiler/issues/57#issuecomment-437532076
 
 
   Interesting.  The interface shouldn't be in the requires list.  But after we fix that,
there will be other warnings because Google Closure Compiler cannot find the base class and
interface which are referenced by some of the code.  A typedefs/externs file is required for
that, and I don't think you can use the .js files for the external class and interface as
the typedef/extern.  So that means, unlike a SWF class, which can be used as the external
or linked definitions, the .js class cannot.  It would be rather heavy to generate a sister
typedef file for every .js file since most classes probably won't be used as external dependencies.
 Maybe in the future we can teach the compiler to autogenerate a typedef/extern on the fly
if it sees that there are external references that have .js files that aren't externs.  But
that could be slow.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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

Mime
View raw message