Hi Georges, I have already replied to several individual mails on this subject. Yes, you are right. This was one the first functions implemented in the system assuming that you had to be in the current directory to write in it. It is not complicated to change it. I am only afraid that this may break some existing code. If I do not receive a counter proposal in the coming days, I will make the relevant changes. Rene Brun On Mon, 28 Aug 2000, George Heintzelman wrote: > > > 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