Michael Meeks wrote:
Hi Stephan,

On Wed, 2007-08-08 at 09:46 +0200, Stephan Bergmann wrote:
To put this into perspective: The restriction to not add to published UNO enums is not due to any UNO languag binding limitations, but is a necessity for building robust software.

        A necessity !? I beg to differ :-) it is just necessary to make it
clear in the documentation that "enums may be extended later - program
defensively".

IMO, using such enums would not be *that* much different from using the current "workarounds" like short/long/hyper/string for extensible sets (for which you correctly identify certain shortcomings). For example, every interface method that takes such an enum as parameter would have to specify which value subset it supports and how it handles unknown values.

Of course, your mileage may vary.

-Stephan

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to