Re: TUnixSystem

Valery Fine (fine@bnl.gov)
Fri, 5 Feb 1999 14:04:27 -0500


Hello Pascal
On 5 Feb 99 at 13:51, you wrote:

> Hi Valery and sorry for the delay,
>

Thank you very much for your kind reply. I was wondering you found
some bug in the ROOT TSystem class design.

> gSystem is a TSystem, and i'm casting it to a TUnixSystem,
> because we are working on unix.
> I agree , It's not very important and probably doesn't change
> anything.

I does make your code not portable though.
Sometimes it is important.

With my best regards,
Valery

>
> > On 4 Feb 99 at 10:57, Pascal Girard wrote:
> >
> > > if ( !((TUnixSystem*)gSystem)->AccessPathName(file) ) {
> >
> > Could you clarify why you did cast to TUnixSystem and did not use
> > the thing directly:
> >
> > if (!(gSystem->AccessPathName(file) ) {
> >
> > Valery
> >
>