[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
What's the meaning of base_properties::has_dynamic_property() ?
From: |
John W. Eaton |
Subject: |
What's the meaning of base_properties::has_dynamic_property() ? |
Date: |
Tue, 22 Nov 2011 16:01:55 -0500 |
On 22-Nov-2011, Michael Goffioul wrote:
| Hi (John),
|
| I'm wondering what's the meaning of
| base_properties::has_dynamic_property() method? It only returns true
| when the name is in base_properties::dynamic_properties member, but
| that only happens after base_properties::set_dynamic has been called
| at least once.
|
| This means that if you create a dynamic property then happen to call
| has_dynamic_property(), it will return false. Change the property
| value (which in fine calls set_dynamic), then it returns true. Is this
| intentional?
I don't see where has_dynamic_property is ever used. But I think it
is intended to test whether one exists, regardless of value. I
haven't looked closely at this, but how can you create a dynamic
property without adding it to the list of dynamic properties that is
used in has_dynamic_property?
jwe