At 11:24 AM -0400 4/19/06, Asher Dunn wrote:
So make DirectoryBitmapConstants a module, and all the enum values protected constants in that module. Sure, you end up with more modules, but this solves both your problems, does it not? You avoid a single huge namespace, and you don't have to cast constantly.

To me, one of the biggest annoyances with using constants is that the IDE insists on displaying them in aplhabetical order, rather than some logical progression that matches an external header file or ordering that I want to keep.

Constants are often the right solution but the IDE makes it a PITA to set them up en mass and to control the display order. If I recall correctly at least the enum UI lets you control the ordering.

Regards,
Joe Huber
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to