Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
3 votes
5 answers
2k views

Functions with side-effects in Delphi/Pascal

What is the proper approach to functions that have side-effects in Delphi/Pascal? For example, I could have a boolean function DeleteFile that returns True if the file was deleted and False ...
thoiz_vd's user avatar
  • 131