On 2019-09-22 23:04, Michael Van Canneyt wrote:
On Sun, 22 Sep 2019, Ched wrote:
.
.
From https://www.freepascal.org/port.html about porting Turbo Pascal
codes:
> the dos unit Findfirst() call must always be followed by a Findclose to
release some resource.
What's right ?
The sysutils one. I will adapt the 'port' document.
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.
Tomas
_______________________________________________
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal