Finally/fi
Varattu sana finally määrittää lohkon, jota tulisi aina käsitellä, riippumatta siitä, onko virhe tapahtunut vai ei.
Esimerkki:
begin
...
try
... // Erilaisisa toimintoja
finally
... // Lopputehtävät, joka tulisi tehdä myös virhetapauksissa
end;
...
end;Toinen esimerkki (tässä esimerkissä finally lohko suoritetaan aina):
begin
...
try
try
... // toiminnot joita tarkistellaan
except // virheen käsittely
...
end;
finally // aina käsiteltävät toiminnot
...
end;
...
end;Katso myös
From the Free Pascal wiki, page "Finally/fi", as it stood on 2022-08-06 after a change by Kai Burghardt, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's Licensing page. If you have concerns about this material, message the admin.