Advertisement
YellowAfterlife

Untitled

Nov 12th, 2012
203
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Haxe 0.27 KB | None | 0 0
  1. #if code_completion
  2. class Some {
  3. public var value:Int;
  4. }
  5. #elseif neko
  6. typedef Some = package.neko.Some;
  7. #elseif
  8. typedef Some = package.other.Some;
  9. #else
  10. // What I want to do (probably similar to C++ declarations):
  11. function Some.square() {
  12.     value *= value;
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement