Frank Schönheit - Sun Microsystems Germany wrote:
Hi Stephan,

service DocumentInfo: XDocumentInformation
{
};
This syntax would mean that language mappings do no offer default constructors for that service. Is that intended, or is it a typo (dropping the "{}" would enable the default constructors)?

Uh - I wasn't aware of this. I doubt any developer coming from the C++
side would expect such a subtle difference. Wouldn't it make sense to
always generate default constructors?

Too subtle, admitted. The idea behind it was that there are special cases of services that are normally not instantiated explicitly (for an example of this, see the UNOIDL documentation of com.sun.star.uri.UriReferenceFactory) for which the ability to suppress constructors would be handy. While an unfortunate gotcha, I hope it is not a too problematic one (apart from frustrating authors of new UNOIDL every now and then), as it should always lead to very visible errors, not subtle ones.

-Stephan

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

Reply via email to