[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-bindings
Subject: Re: [Kde-bindings] Hacking moc-generated code
From: Eric Jardim <ericjardim () gmail ! com>
Date: 2005-08-31 6:58:10
Message-ID: 432ec6c505083023587deba4f5 () mail ! gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
2005/8/31, Luca Fascione <lukes@wetafx.co.nz>:
>
> I don't think static means constant across *time*, it just should mean
> constant across instances of the class,
> i.e. you *can* change the metaobject while it's running... :-)
Sure. I know the difference. But the way moc generate the metaoject, it gets
both static meanings :)
And there you go, done addition of methods at runtime: just reimplement all
> the stuff with an added "addMethod()" method that will insert your new
> method in some data structure and you're done.
Interesting. I'll take a note of this. In Python you can add/delete methods
of class/instance at runtime. This means we need to update the qmetaobject
every time it happens.
Thanks,
[Eric Jardim]
[Attachment #5 (text/html)]
2005/8/31, Luca Fascione <<a \
href="mailto:lukes@wetafx.co.nz">lukes@wetafx.co.nz</a>>:<div><span \
class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px \
solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I don't think static means constant across *time*, it just should mean
constant across instances of the class,<br>
i.e. you *can* change the metaobject while it's running... :-)</blockquote><div><br>
Sure. I know the difference. But the way moc generate the metaoject, it gets both \
static meanings :)<br> </div><br><blockquote class="gmail_quote" \
style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; \
padding-left: 1ex;">And there you go, done addition of methods at runtime: just \
reimplement all the stuff with an added "addMethod()" method that will \
insert your new method in some data structure and you're done.</blockquote><div><br>
Interesting. I'll take a note of this. In Python you can
add/delete methods of class/instance at runtime. This means we need to
update the qmetaobject every time it happens.<br>
</div></div><br>
Thanks,<br>
<br>
[Eric Jardim]<br>
_______________________________________________
Kde-bindings mailing list
Kde-bindings@kde.org
https://mail.kde.org/mailman/listinfo/kde-bindings
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic