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/01/24 15:37:44 UTC

[GitHub] joshtynjala edited a comment on issue #73: Abstract classes in ActionScript

joshtynjala edited a comment on issue #73: Abstract classes in ActionScript
URL: https://github.com/apache/royale-compiler/issues/73#issuecomment-457240456
 
 
   In bytecode, the class compiles with `[RoyaleAbstract]` metadata instead:
   
   ``` actionscript
   package com.example
   {
   	[RoyaleAbstract]
   	public class MyAbstractClass
   	{
   		public MyAbstractClass()
   		{
   			
   		}
   	}
   }
   ```
   
   The compiler is smart enough to look for this metadata to determine if a class from a compiled SWC file is abstract or not.
   
   In fact, if you didn't want to use the new `abstract` keyword, you could add this metadata instead. This would be useful for developers that are still using IDEs that don't understand the `abstract` keyword.

----------------------------------------------------------------
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