[vtk-developers] Any objections to rename "VTK_LARGE_ID" to be consistent...

Berk Geveci berk.geveci at kitware.com
Fri Mar 22 20:14:55 EDT 2013


+1


On Fri, Mar 22, 2013 at 6:31 PM, Sean McBride <sean at rogue-research.com>wrote:

> Hi again,
>
> Looking in vtkType.h we see things like VTK_INT_MIN and VTK_INT_MAX and
> lots of other MIN and MAX varieties.
>
> I came across this snippit: "-VTK_LARGE_ID-1" and thought, 'Why didn't he
> use the MIN variant?'  Well, there isn't one.
>
> Anyone object to:
>  - a rename of VTK_LARGE_ID to VTK_ID_MAX
>  - a find-replace of the 58 instances of VTK_LARGE_ID to VTK_ID_MAX
>  - the creation of VTK_ID_MIN
>  - a find-replace of the 2 instances of -VTK_LARGE_ID-1 to VTK_ID_MIN
>  - adding VTK_LARGE_ID in VTK_LEGACY_REMOVE for backwards compatibility
>
> I think it would improve consistency and readability.
>
> Cheers,
>
> --
> ____________________________________________________________
> Sean McBride, B. Eng                 sean at rogue-research.com
> Rogue Research                        www.rogue-research.com
> Mac Software Developer              Montréal, Québec, Canada
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtk-developers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20130322/99966ba2/attachment.html>


More information about the vtk-developers mailing list