On 2014-02-21 16:34, Ben Boeckel wrote:
Other than <varname>, I don't really see a huge burden to not allowing implicit dereferencing and it is more consistent at that point. In fact, I'd be willing to say in <varname> that we *only* support implicit dereference, but it may be too hard to detect:if (${var}) and actually help users to fix such cases.
I expect the above to test the variable whose name is stored in 'var' :-). And probably something is wrong if there is no such variable. So that's probably an argument for forcing a dereference there (unless the input is a truth-value).
-- Matthew -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers
