Re: MI: fix base members in references

Nick Roberts
2006-12-10T04:19:10Z

Vladimir Prus writes:

> does the code you've added ever does anything?

It seems to handle variable objects of references to pointers correctly.
Have you tried it?

and:

> > Are you saying get_type should use value_type (var->value) instead of
> > var->type?
>
> No. I'm saying that instead of using get_type and then additionally doing
> something with the type, we should directly use value_type (var->value). If
> we want to know how many children a value has, and you know the type of the
> value, it does not make sense to take some other type, do some
> transformation on it, and the hope you'll get the same type. You can just
> use the type that's right.

I don't think so because it looks at target_type not type. But these are
unfamiliar concepts to me, so if you think it can be done more simply, or if my
patch doesn't work, post a patch and I'll try it out.

--
Nick http://www.inet.net.nz/~nickrob