I'm afraid it is something that should be baked in the compiler as it should be evaluated when reading the raw source from the filesystem.
A macro approach that somehow works is to do like mpartial: combining valid Haxe classes.
https://github.com/massiveinteractive/mpartial
But honestly, we have abandoned using it because it is a very costly macro in large projects, and there are fundamental problems in practice - for instance a library uses mpartial and you need to override a combined class.
Back to the preprocessor approach, maybe it could work if you always work with processes files, and can reprocess every time to need:
//#startinclude ../version.hx
var version = 1.0; // from version.hx
//#endinclude
--
To post to this group haxe...@googlegroups.com
http://groups.google.com/group/haxelang?hl=en
---
You received this message because you are subscribed to the Google Groups "Haxe" group.
For more options, visit https://groups.google.com/d/optout.
Hi Juraj. I just noted my primary usecase in an issue - I'm evaluating porting a large codebase from AS3 that uses includes to achieve code reuse outside inheritance.