On 04/18/2014 08:58 AM, Rolf Eike Beer wrote:
> To forbid whitespace and control characters in variable names can IMHO only 
> be good.

Some people use arbitrary variable names as a way to do key/value tables.
In such cases it is intentional to use arbitrary characters in variable
names even though they are never written literally in the source.

IIRC Ben's work on variable expansion rules includes restrictions on what
can appear literally inside ${} references, but that is as far as we can
go in restricting variable names.  Nested evaluation will still allow
arbitrary characters so the key/value-table use case will still work.

-Brad

-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers

Reply via email to