Need encouraging...

Regan Heath regan at netmail.co.nz
Tue Oct 2 08:51:51 PDT 2007


Arlen Albert Keshabyan wrote:
> First, I want to say: I do not want to claim for specific features in
> D. I do not want to say good or bad words towards D language in
> general. I want to work with D as it already is.
> 
> I have definite purposes and aims to port a definite library to D.
> But... I do not know how to do that (no tutorial URIs, please).
> 
> Here is the GUI library I want to port to D
> (http://www.rawmaterialsoftware.com/juce/). JUCE is the
> cross-platform development framework written in C++ (GUI oriented).
> There are no problems to port a regular C++ source code to D but...
> except for the one that uses multiple inheritance. Someone here
> claims that multiple inheritance might be easily emulated in D
> through the mixins and templates. But I see no defined way to embody
> this technique into porting the library mentioned above. Please, I
> need a help from anyone who can give me a descent advice on how to
> emulate multiple inheritance in D effectively for my specific
> purposes or how to avoid using multiple inheritance in D keeping the
> JUCE functionality intact.
> 
> Thank you in advance.

As it stands in order to answer your question I/we require knowledge of 
how JUCE is designed.  So, I can't help you without investing a fair 
amount of time learning how JUCE works.  Sadly, it's unlikely I will 
find that time and therefore I wont be able to help.

I'm probably not the only one in that situation, sure there may be 
someone who already knows JUCE or is suficiently motivated to take a 
good hard look at it and get to know it, but you're better off lowering 
the bar by giving us a specific problem to solve.

So, I reckon if you took a specific piece of code from JUCE and asked 
how to solve the multiple inheritance or functionality problem in that 
piece of code you'll get many more responses.

Totally up to you of course.

Regan



More information about the Digitalmars-d mailing list