[webkit-efl] FW: Use of pimpl idiom for Ewk classes

Shalamov, Alexander alexander.shalamov at intel.com
Fri Oct 19 05:20:02 PDT 2012

On Fri, Oct 19, 2012 at 1:10 PM, Dumez, Christophe
<christophe.dumez at intel.com> wrote:
> One solution would be to have 2 C++ methods:
> const char* destination() const; // For public C API use
> String destinationString() const; // For private C++ code
> but it starts to look ugly and duplicates code.

Personally, I wouldn't like to spread logic between C++ and public
ewk_* C functions and
I would vote for hiding private data of the C++ class (remove EWK_D macro).

If conversion between C++ and C/EFL types would be required I would
implement it inside C++
class and if possible share conversion code between C++ classes.


More information about the webkit-efl mailing list