Re: [PATCH] Setting variables in PD_DocumentRDF

From: Ingo Brückl <ib_at_wupperonline.de>
Date: Sun Apr 15 2012 - 13:20:59 CEST

Hubert Figuière wrote on Sat, 14 Apr 2012 20:32:51 -0700:

> On 14/04/12 12:48 PM, Ingo Brückl wrote:
>> Yes, but things are more complicated here (due to sloppy programming).
>> These static variables are used in PD_DocumentRDF class member functions
>> as well as in ordinary global (non-member) functions (although only with
>> file scope).

> There you go. You know what to fix :-)

I'd better leave the RDF code as much as possible untouched, but I think
I've found a clean solution to fix the handling of static variables and
static methods, because with the current code there is no guarantee of
initialization order.

The static variables are private now and access is only possible by a
public get function which controls the initialization of the variable.

Any objections?

Ingo

Received on Sun Apr 15 13:46:56 2012

This archive was generated by hypermail 2.1.8 : Sun Apr 15 2012 - 13:46:56 CEST