I have ported Turbo Pascal code but then use Sysutils instead of DOS,  my 
intention was to convert it to a windows console application that used windows 
features, and I had no interest in maintaining Turbo Pascal backward 
compatibility, and the use of findfirst, findnext, etc, was part of the code 
that never changed.  I actually was not aware that there even was a command 
called findclose, and I never did it in Turbo Pascal.. it IS in there now, and 
I believe it was a discussion on this list that prompted me to add it.   
Anyway, just wanted to say, there are reasons to want to port Turbo Pascal code 
and then switch over to systutils, so having documentation that includes the 
differences between the versions would be helpful.

James

>As mentioned by Sven, there's probably no reason for any adapting it - people 
>porting Turbo Pascal code use Dos.Find* rather than the sysutils version and 
>since Dos.FindFirst >doesn't return a handle directly (it's hidden within the 
>SearchRec record), calling Dos.FindClose always is the safest bet.
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to