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/04/11 23:06:50 UTC

[GitHub] [royale-compiler] 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
 
 
   ## Bytecode
   
   In SWF bytecode, the class compiles with `[RoyaleAbstract]` metadata instead:
   
   ``` actionscript
   package com.example
   {
   	[RoyaleAbstract]
   	public class MyAbstractClass
   	{
   		public function 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. Especially if the IDE has its own syntax error checking that doesn't rely on the compiler.

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