Georg Baum wrote:
> Am Freitag, 17. November 2006 21:06 schrieb Peter Kümmel:
>> Georg Baum wrote:
>>> Peter Kümmel wrote:
>>>
>>>> My idea was to use some Loki code for singletons and global static 
> data.
>>> I don't know Loki, so maybe I am missing something here, but I believe 
> that
>>> we already have everything needed.
>> Yes, we have C++.
> 
> What do you mean? I believe that Loki is a well designed library of good 
> quality, but I do not see the problem that it might solve for us. Our 
> problem is that some global static objects are destructed too late, 
> because they need other objects. This problem can be solved IMHO by 
> putting these objects into the LyX singleton, so I don't see why we need 
> any additional code.
> If there is a problem that can be solved by Loki, then I am in favour of 
> using it instead of reinventing the wheel. I just don't see such a problem 
> for now.
> 

There is a construct do declare global static variables
with a specified life time.
But it was just a idea, not so important.

>> BTW, next time at a book shop, have a look at "Modern C++ Design" by
>> Andrei Alexandrescu.
> 
> I might do so.
> 
> 
> Georg
> 


-- 
Peter Kümmel

Reply via email to