Hugh Gibson schrieb: >> I could change the source loader so that it adds SOURCE_BUILD to the >> qx >> namespace. This way the existence of this variable would allow to >> differentiate between source and release >> builds. > > That's one way of doing it, and is probably a good 80/20 solution (20% of the > time, 80% of the solution). > > Another way would be to modify the compiler so blocks of code could be > deleted when compiling, which would be more efficient, and would mean we > could add things like asserts etc. That would be a significant improvement. > The compiler could look for "if (qx.SOURCE_BUILD)" and if found, and doing a > release build, it could just not emit the if statement and the corresponding > statement block.
Yes, but I don't think it's good to define these statements using javascript. I would like it better to have something like pre processor hints e.g. ifdef etc. We could maybe use these things for browser-optimized builds, too. But as you mention this is a much bigger working field. Maybe the 80% solution is the best for the currently available resources. Sebastian > > Hugh > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > qooxdoo-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
