[vtk-developers] VTK_MAJOR_VERSION is no longer #define'ed

Bill Lorensen bill.lorensen at gmail.com
Wed Apr 25 11:47:09 EDT 2012


David, I disagree.

I think these conditionals in the examples serve two purposes:

1) They show the vtk development community the impact on users of API change
2) They will help frustrated customers convert their own code.

Bill

On Wed, Apr 25, 2012 at 11:41 AM, David Doria <daviddoria at gmail.com> wrote:
>> Reading code with conditionals like the above is not a great way
>> to learn VTK 5 or VTK 6.
>
> I definitely agree with this - the conditionals are surely just adding
> clutter for new users to sort through. However, I've never had a
> better solution support both versions (we wouldn't want to duplicate
> the entire wiki into Wiki/VTK/Examples/Cxx5 and Wiki/VTK/Examples/Cxx6
> or anything like that) so I didn't see a way around it. My vote would
> be to only demonstrate the latest version (now v6) in the examples.
>
> David



-- 
Unpaid intern in BillsBasement at noware dot com



More information about the vtk-developers mailing list