On 10-2-2012 13:59, Reinier Olislagers wrote: > On 10-2-2012 13:42, michael.vancanneyt-0is9kj9s...@public.gmane.org wrote: >> The function just renames. The result may be that the file ends up in >> another directory, i.e. is moved. > Mmm yes. To me that is arguing over semantics. Or maybe we're trying to > say the same thing. > > I understand that's the way the underlying filesystem works (on Unixes > at least), but that is not the case everywhere. > E.g. Windows rename command help gives: > Renames a file or files.[...]Note that you cannot specify a new drive or > path for your destination file. > > So there, rename (the command at least) does NOT allow you to move files > between directories. > > In other words, programmers coming from a Windows background might not > expect that the renamefile command allows "moving" files between > directories on the same partition.
I've written this wiki page: http://wiki.lazarus.freepascal.org/Rosetta_Stone ... hope that conveys my meaning a bit better, and may help other people who have the same preconceptions... Of course, additions/corrections welcome, as always... Regards, Reinier _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal