[Seed7-users] Functions & Procedures Confusion
Interpreter and compiler for the Seed7 programming language.
Brought to you by:
thomas_mertes
From: Duke N. <sid...@gm...> - 2021-11-12 19:02:18
|
I'm totally confused with Seed7's use of "func". In other languages - pascal, oberon2, modula2 etc - a procedure DOES something, but returns nothing. On the other hand, a function can return a value, and sometimes modify an existing value. Seed7 appears to overload the term "func" to mean: - a function declaration, and - begin ... end or { ... } Is that correct? Are procedures and functions specifically explained somewhere? I could not find it in the manual OR the tutorial. I had to go to rosettacode.org for a simple explanation of a seed7 function construct. However, there was nothing there about how to properly write a seed7 procedure. TIA ... -- Duke Normandin <sid...@gm...> |