[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: [Kde-perl] [PATCH] kdebindings: add perl string marshaller for
From:       Gary Greene <greeneg () phoenuxos ! com>
Date:       2006-10-11 19:53:26
Message-ID: 200610111553.31991.greeneg () phoenuxos ! com
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


On Monday 09 October 2006 05:40 am, Richard Dale wrote:
> On Monday 09 October 2006 05:27, Logan Rathbone wrote:
> > I was always using PerlQt's version of smoke, and I had written a couple
> > programs using it.  The other day though, I decided to try to build it
> > against kdebindings's smoke.  However, some of my code broke because I
> > was using some Qt functions that take QByteArrays, and for some reason
> > kdebindings's smoke doesn't allow for that and PerlQt's does.  So this
> > patch seems to add that marshaller into kdebindings's smoke, and hence
> > unbreaks my code when built against it.
>
> The problem is that if you have automatic Perl <--> C++ QByteArray
> conversion it makes it difficult to use QTextOStreams for instance. When
> you write to the stream, the underlying QByteArray will be updated, but
> possibly not the original string you passed. So I found the automatic
> conversion was more trouble than it's worth. I think a better solution to
> get the current Smoke lib working with PerlQt is to remove the QByteArray
> marshalling from handlers.cpp. I'll forward this mail to the kde-bindings
> and perlqt mailing lists to see what Ashley Winters thinks anyway.
>
> -- Richard
> _______________________________________________
> Kde-perl mailing list
> Kde-perl@kde.org
> https://mail.kde.org/mailman/listinfo/kde-perl

Richard, the only problem with this is that it completely breaks usage of 
QByteArrays for PerlQt. Logan has some apps in PhoeNUX OS that actually use 
QByteArray constructs, thus the reason WHY he patched our build of 
kdebindings to get it working and submitted the patch to kde-devel. The 
definitive plan for PheoNUX is to have the Perl Qt3 / KDE bindings solidly 
working for all apps that we are developing, and then port the codebase of 
PerlQt/PerlKDE to Qt4 / KDE 4 so we get a sane path for when KDE 4 is out. 
This measn that short-changing the binding in this case isn't a good option 
unless we can get QByteArrays working with the marshaller.

[Attachment #5 (application/pgp-signature)]

>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic