Created
February 4, 2013 00:14
-
-
Save dpeek/4704328 to your computer and use it in GitHub Desktop.
Macro getter
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Test | |
{ | |
public static function main() | |
{ | |
var test = new Test(); | |
trace(test.style); | |
} | |
public function new() | |
{ | |
} | |
public var style(get_style, null):Dynamic; | |
macro function get_style(ethis:Expr):Expr | |
{ | |
return macro asdf; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment