DEV Community

Discussion on: Are you using Void correctly?

Collapse
 
theskaf profile image
Θεόδωρος Σκαφιδάς ♫

Delphi is still alive you know. Like procedures and functions?

Collapse
 
chris_bertrand profile image
Chris Bertrand

And Pascal! And Yes, they separate this concern too!

I love this description from the DelphiBasics site

"Delphi provides 2 types of subroutine - Procedures and Functions. Functions are the same as procedures except that they return a value in addition to executing statements. A Function, as its name suggests, is like a little program that calculates something, returning the value to the caller. On the other hand, a procedure is like a little routine that performs something, and then just finishes."

I'll update the post, thanks for the reminder!

Collapse
 
theskaf profile image
Θεόδωρος Σκαφιδάς ♫

You are welcome. Good read btw :)