RE:Re: [ROOT] Problems accessing protected

From: Masaharu Goto (MXJ02154@nifty.ne.jp)
Date: Tue Jun 13 2000 - 12:53:36 MEST


Hello George,

I've implemented protected member accessing mechanism. Following
pragma statement makes it able.

  #pragma link C++ class+protected [classname];

Only non-constructor,non-destructor members can be accessed as protected.
This feature will be included in cint5.14.41.

Thank you
Masaharu Goto

>
>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