[CMake] Waf build tool

Gonzalo Garramuño ggarra at advancedsl.com.ar
Sun Dec 16 14:44:28 EST 2007


Alexander Neundorf wrote:
> 
> What's the purpose ?
> CMake is kind-of going OO.
> 

Meaning *what*, exactly?


Do you mean that....
	a) say FILE( READ ... )
		will change to:
	   File.read()  or x.read() where x is a file object?

	   and LIST( APPEND ... )
	   will be just a.append(x) or a += x

	b) you'll be able to do:

		class A
		   attr_accessor :x
		   def f( x )
                       @x = x + 5
                    end
                 end

		class B < A
                    def t(); end
		end

                 a = A.new
		a.x
		a.f
		a.x = 5

		b = B.new
		b.x
		b.f
		b.t

         c) you'll have 'virtual' macros?
		class A
		   def f( x ); end
                 end

                 class B < A
		   def f( x )
			super
		   end
	        end

		a = A.new
		b = B.new
		b.f(1) # calls B::f, which in turn can call A::f, too.
		a.f(1) # calls A::f

	d) ...other...

I consider a) to c) the cornerstone of OO.  b and c cannot be done in 
cmake.  a) can (only partially) be done and with an uglier syntax.


-- 
Gonzalo Garramuño
ggarra at advancedsl.com.ar

AMD4400 - ASUS48N-E
GeForce7300GT
Xubuntu Gutsy


More information about the CMake mailing list