Date: prev next · Thread: first prev next last
2012 Archives by date, by thread · List index


2012/6/25 Noel Grandin <noel@peralex.com>:

On 2012-06-25 15:32, Michael Meeks wrote:

On Sat, 2012-06-23 at 20:45 +0200, Philipp Riemer wrote:

(2) In addition, I was wondering if it would be possible to shorten
parameters (e.g. "com::sun::star::uno::Reference <
com::sun::star::embed::XStorage >& xDestStg") by using aliases or
other ways to point to that namespaces. But I am not skilled enough in
C++ to do that (see e.g. patch 0003 for examples).

       The great hope is LibreOffice 4 - which will discard the
com::sun::star
prefix and/or do something sensible instead here, making our APIs much
easier to read.

       There was also hope for a transitional set of namespace aliases,
but I
forget why that was shot down, in the meantime we have that ugly,
tangled madness (sadly) :-)



Perhaps we could adopt a transitional scheme, where we move our types and
definitions to a new namespace, but leave aliases in the current namespace?
i.e. in pseudo-code:

 namespace shiny
 {
    class Reference ..... yada yada.....
 }
 namespace com.sun.star.uno
 {
     typedef ::shiny::Reference Reference;
 }

Does that sound reasonable (have no real idea, given my lack of C++
experience).

Correct me if I am wrong, but I think that exact step was proposed and
also rejected after discussion a few weeks ago.

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.