Daniel Jacobowitz wrote: > On Thu, Sep 25, 2008 at 01:32:57AM -0300, Thiago Jung Bauermann wrote: >> Is it useful to provide a casting mechanism, to enable for instance >> access to elements from a specific type in the inheritance hierarchy? > > I think so. This reminds me of another reason why length is a > peculiar concept here: GDB should (though I think does not, at > present) support "v->D::x" and "v->C::x". So v['C::x'] would make > sense, but you can't iterate over things like that. So maybe length > should be the number of direct fields? Or the number of fields + base > classes? Either way, I suggest it match what iterators do if you > support iteration. There's no iterator support. Not yet at least. This version has no FIXMEs. It uses current_language for value printing, and its length operation always fails with NotImplemented. Ok to commit? -- []'s Thiago Jung Bauermann IBM Linux Technology Center