[Oberon] A CASE quiz

Chris Burrows chris at cfbsoftware.com
Fri Feb 16 12:36:12 CET 2018


I have attached two copies of a CASE statement which implements part of the
Soundex algorithm. Assume that both compile OK but both have at least one
identical logical error which you may not have noticed if I hadn't warned
you. Which version do you think would be more effective in flushing  out the
error if the programmer was not aware of his mistake?

 

I put my money on the one without the ELSE .

 

Regards,

Chris Burrows

 

CFB Software

http://www.astrobe.com/RISC5

 

 

 

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.inf.ethz.ch/pipermail/oberon/attachments/20180216/06a1cf29/attachment.html>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: NoElse.txt
URL: <http://lists.inf.ethz.ch/pipermail/oberon/attachments/20180216/06a1cf29/attachment.txt>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: Else.txt
URL: <http://lists.inf.ethz.ch/pipermail/oberon/attachments/20180216/06a1cf29/attachment-0001.txt>


More information about the Oberon mailing list