Re: [ROOT] Problems accessing protected

From: George Heintzelman (gah@bnl.gov)
Date: Fri Jun 02 2000 - 21:33:15 MEST


Hello Root/CINTers,

Masaharu wrote:

(about protected data members, and presumably this will apply to 
virtual functions as well, in interpreted classes deriving from 
compiled classes):

> > This could be theoretically solved by generating stub sub-class for
> > every precompiled class. However, this will double the size of dictionary.
> > This is quite fundamental for a compiler independent C++ interprter.

I agree that this is not desireable. It might however be desireable to 
generate such stub sub-classes for a select set of classes (those that 
the developers realize may be frequently derived from by interpreter 
users), with which sub-classes so generated being controlled by a 
#pragma. This would be quite nice; I know of at least two and possibly 
more places we would make use of this functionality in our analysis 
package Phat, if it were available; at the moment we're currently 
effectively creating stub classes 'by hand' for the classes we thought 
it was essential that this be available, and dealing with it in other 
places we would probably prefer not to.

What do you think, Masa?

George Heintzelam



This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:27 MET