[Bf-taskforce25] StructRNA properties and inheritance

vekoon vekoon at gmail.com
Sat Jan 31 19:41:12 CET 2009


Hey brecht,
I noticed that struct inheritance in RNA is achieved by duplicating (or 
better, re-defining) all the properties of the base struct for the new 
struct being defined. I was wondering if this inheritance information 
could be moved to iteration time thus avoiding the need of duplication 
or if there's any difficulty in doing so. Not only would that make the 
API cleaner but also would allow to retrieve just the properties defined 
for a specific struct ignoring those of the base structs which at the 
moment is not possible.

Also, as a side note, is this a typo?
in rna_define.c (line 449):
            cprop->next= rna_builtin_properties_next;
            cprop->next= rna_iterator_listbase_end;


More information about the Bf-taskforce25 mailing list