On 2010-05-27 09:57:30 -0400, Max Samukha <spam...@d-coding.com> said:
We cannot impose on the user of Q_OBJECT the requirement that a and b
should not be circularly imported or that he has to manually call an
initialization function etc.
Just a small note...
In the D/Objective-C bridge, I've resorted to lazy initialization for
this kind of thing. This way there is no module constructors and
circular imports work as expected. But it isn't thread-safe, and I
expect it would be a pain to make lazy initialization thread-safe,
although I haven't tried yet.
--
Michel Fortin
michel.for...@michelf.com
http://michelf.com/