2002 2003 2004 2005 2006 2007 2008 2009 <2010> 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 | Index | 2002 2003 2004 2005 2006 2007 2008 2009 <2010> 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 |
<== Date ==> | <== Thread ==> |
---|
Subject: | Using C++ keywords as variable names in C code |
From: | Ralph Lange <[email protected]> |
To: | EPICS Core Talk <[email protected]> |
Date: | Wed, 16 Jun 2010 10:39:42 -0400 |
Hello everybody,I found that db_access.c is using the C++ keyword "new" as a variable name. While this is of course valid code, it confuses IDEs, syntax highlighting editors and such, so I would probably consider it bad practice. Has anybody considered fixing this issue? Else I would create a branch for it and get it done. While I'm at it - any other C++ keywords I should rename? Should I enforce straight C comments instead of C++ style "//" comments, too? Or are all compilers accepting these nowadays?
Cheers, Ralph