Statements as expressions [was Re: Undefined behaviour in C]

Ben Bacarisse ben.usenet at bsb.me.uk
Wed Mar 30 10:26:38 EDT 2016


Dennis Lee Bieber <wlfraed at ix.netcom.com> writes:

> On Tue, 29 Mar 2016 20:14:02 -0700 (PDT), Rustom Mody
> <rustompmody at gmail.com> declaimed the following:
>
>
>>Pascal ? C ? Python is a slide down because
>>Pascal had the clear distinction of procedure and function
>
> 	That goes back to FORTRAN (in which one has SUBROUTINE subprocedures,
> and FUNCTION subprocedures -- yes, that is how the standard document used
> to define them), which quite predates Pascal. Strangely, the precursor to
> Pascal -- ALGOL -- apparently used PROC for both procedures and
> functions.

Algol 60 used "procedure" but it maintained the distinction in that
functions had (have?) a type and subroutines didn't (don't).  Algol 68
uses PROC for both and the type VOID for procedures with no value.

-- 
Ben.



More information about the Python-list mailing list