[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Trivia question
- From: Roberto Ierusalimschy <roberto@...>
- Date: Wed, 30 Apr 2014 11:26:07 -0300
> > On Wed, Apr 30, 2014 at 03:30:10PM +0200, Dirk Laurie wrote:
> >> Name two computer languages in which `end` but not `begin` has syntactic
> >> significance.
> >
> > Lua, Basic.
>
> Also, I think, Fortran. Which is probably what inspired Lua here?
Lua got this from Modula 2. Modula 2 does have BEGIN, but it does
not use it for control structures:
WHILE Index < 5 DO
Index := Index + 1;
WriteInt(Index,5);
END;
-- Roberto