Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-swt-dev] Mac OS X Port

Martin,

So I´m unsure whether to use the "typesafe enum pattern" or the "int
enum pattern". Maybe you could aid me in finding the right decision?
:-)

I think the "typesafe enum pattern" is good for public API's that
everyone uses. But it is an overkill for an internal interface to the
Carbon DataBrowser. After finishing the native SWT Tree for Carbon no
one will ever care about these enums. And the "typesafe enum pattern"
will not make the swt.jar smaller.
(Actually I would be more interested in automatically generating all
these enums and native method definitions from the Carbon header
files)

Bottom line: use the "int enum pattern"

my 0.02 CHF...
--andre


Back to the top