[Oberon] ThisCommand, semi missing

Paul Onyschuk ptmelville at gmail.com
Tue Apr 15 11:40:30 CEST 2014


On Tue, 15 Apr 2014 01:33:05 +0200
Jan Verhoeven <jan at verhoeven272.nl> wrote:

> I would have expected a semicolon before "RETURN SYSTEM.VAL (Command,
> w)"
> 
> Is this a bug, or a feature?

Some answers were provided, but I'll try to give a simpler explanation.

Oberon-07 doesn't allow multiple exit point out of function.  This
means that there can be only one RETURN in procedure, it isn't a
statement any longer, instead it is a clause (hence it doesn't need
semicolon).

-- 
Paul Onyschuk



More information about the Oberon mailing list