Hi Hugh,

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

Thanks! I can start using it now even though I'm not using SVN code. It will kick in with the next release.

  
So that the code can be automatically migrated in future (to using preprocessor instructions), we should have a standard way of doing testing for this - perhaps:

if (qx.SOURCE_BUILD) {
  // do something
};

Other ways of doing it might be 

if ("SOURCE_BUILD" in qx)

or even this, to distinguish between undefined and null:

if (qx.SOURCE_BUILD !== undefined)

  
Since qx.SOURCE_BUILD is initialized to "true" by the source loader and is undefined
in release builds, I would suggest the shortest form  "if (qx.SOURCE_BUILD)".

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