[CMake] lexical scoping
Bill Hoffman
bill.hoffman at kitware.com
Fri Nov 2 16:13:57 EDT 2007
Brandon Van Every wrote:
> On Nov 2, 2007 3:44 PM, Bill Hoffman <bill.hoffman at kitware.com> wrote:
>> I have an idea. What if we created a variable_scope command?
>
> Bad markerting idea. Nobody programs in this idiom. (Well, I don't
> know about Perl, as far as I'm concerned they're nobody. ;-) Lotsa
> people program with functions and would expect a scripting language to
> have functions. Minimize the number of "CMake specific weird things"
> people have to learn, if you want more users. SETLOCAL is not so
> objectionable, didn't some Unix shells have this historically?
>
The problem is what does SETLOCAL mean? There is no scope in cmake
right now. So, I guess you are saying add functions. I am not even
sure what those will be... Many languages have the idea of scope.
Braces in C++. This would just be a way of creating scope.
-Bill
More information about the CMake
mailing list