Hello,
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.

Ok, I added qx.SOURCE_BUILD in svn revision 5440.

Alessandro

begin:vcard
fn:Alessandro Sala
n:Sala;Alessandro
email;internet:alessandro {dot} sala {at} mclink {dot} net
version:2.1
end:vcard

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

Reply via email to