Re: [ROOT] TDirectory::mkdir

From: George Heintzelman (georgeh@sparrowhawk.chm.bnl.gov)
Date: Mon Aug 28 2000 - 21:24:05 MEST


> TDirectory::mkdir creates the new directory into the current directory,
> not inside the "this" directory.

Um... Why? 

As the OP said, it seems rather counter-intuitive, to say the least.

If it's going to work that way, you should probably make it more 
obvious by making the function static. Requiring an object with which 
to call it seems to very naturally put the new directory as a 
subdirectory. If you just make a new TDirectory on your own (rather 
than calling an object's method), that would seem to put it either in 
the top-level or the current directory, depending on global variables.

Well-documenting a bad interface makes a well-documented bad interface, 
which is better than an undocumented bad interface, but is still not a 
good interface...

George Heintzelman
gah@bnl.gov



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