Enum types in IDL and in code

Miklos Vajna vmiklos at collabora.co.uk
Fri Aug 7 01:00:50 PDT 2015


Hi,

On Fri, Aug 07, 2015 at 01:07:52PM +0800, "Matthew J. Francis" <mjay.francis at gmail.com> wrote:
> Mainly the latter confusion. The problem the user I was discussing this
> with had was that when trying to develop using such an interface you
> have no idea what the value you receive from it is unless you can find
> it in the IDL, and when you do so it suggests that it should have been
> an actual enum to begin with.

If the IDL documentation and the actual code differs in such enum vs int
types, I think the best would be to adjust the documentation to match
the code, and not the other way around.

That would help new users to get the right information and would not
break existing clients. Doing the other way around would break existing
users, I'm afraid.

Regards,

Miklos
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20150807/95506bc1/attachment.sig>


More information about the LibreOffice mailing list