[Oberon] How to write this program in Oberon-07?
Chris Burrows
cfbsoftware at gmail.com
Fri Jan 28 04:06:27 CET 2022
On Fri, Jan 28, 2022 at 11:31 AM Oleg N. Cher <allot at bk.ru> wrote:
> Hi Chris and all,
>
> But of course you are aware that the latest revisions of the Oberon-07
> language report say nothing about the fact that CASE should warn the
> programmer about an encountered label that is not in the list?
>
>
Sure. A newcomer might also wonder what happens when the same label appears
in more than one list, if the labels in a list are not in numeric order, if
the range is in decreasing order etc. etc. An experienced programmer might
have preconceived ideas about all of these so the questions might not arise
for them. However, a compiler implementer has to consider all of them and
decide what actions to take.
The Oberon-07 Report does not *prescribe* implementation-specific
behaviour. If you are implementing a compiler you can choose what to do
depending on what is most feasible for the platform and target processor
that you are using. There are usually many trade-offs concerned when making
these decisions. If you are using a compiler and you cannot determine what
the behaviour is, then you should either refer to the
implementation-specific documentation for the compiler that you are using,
or contact the author(s) for those details.
--
Chris Burrows
CFB Software
http://www.astrobe.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.inf.ethz.ch/pipermail/oberon/attachments/20220128/06548480/attachment.html>
More information about the Oberon
mailing list