[Info-vax] Programming languages, was: Re: And another one bites the dust....
Arne Vajhøj
arne at vajhoej.dk
Mon Feb 21 15:16:03 EST 2022
On 2/21/2022 3:10 PM, Dan Cross wrote:
> In article <sv0pgj$66b$4 at dont-email.me>,
> Simon Clubley <clubley at remove_me.eisner.decus.org-Earth.UFP> wrote:
>> For example, you can write C code with Ada syntax by declaring everything
>> as Integer or you can learn the Ada type system and start using the Ada
>> way of thinking to model your problem using Ada's type system.
>
> How's the old quip go; you can write FORTRAN in any language?
When we discussed this last year I posted this "Pacsal":
PROGRAM GOTOFUN(INPUT,OUTPUT);
LABEL L731,L113,L247,L588,L761,L922,L399,L601;
VAR LBL:INTEGER;
VAR I:INTEGER;
BEGIN
L731: GOTO L113;
LBL:=399;
L113: I:=0;
WRITELN(I);
L247: LBL:=601;
IF(I<0)THEN GOTO L588 ELSE IF(I=0)THEN GOTO L922 ELSE GOTO L399;
L588: I:=I+1;
WRITELN(I);
GOTO L399;
L761: CASE(LBL)OF 399: GOTO L399; 601: GOTO L601; END;
L922: I:=I+1;
WRITELN(I);
CASE(I)OF 1: GOTO L588; 2: GOTO L399; 3: GOTO L922; END;
L399: GOTO L761;
L601: END.
> It takes time and experience to learn to use a language
> idiomatically, which is why it's important to foster a culture
> of mentorship and growth, even in industry.
Arne
More information about the Info-vax
mailing list