<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p><br>
</p>
<div class="moz-cite-prefix">Il 03.07.2020 18:44, Dmitry Boyarintsev
via lazarus ha scritto:<br>
</div>
<blockquote type="cite"
cite="mid:CAMpTZre5PGBPpB4N=s29ssGZX51ykBezQB3_A_xQH7mhmOYYJw@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">
<div dir="ltr">On Fri, Jul 3, 2020 at 10:08 AM Special via
lazarus <<a href="mailto:lazarus@lists.lazarus-ide.org"
moz-do-not-send="true">lazarus@lists.lazarus-ide.org</a>>
wrote:<br>
</div>
<div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left:1px solid
rgb(204,204,204);padding-left:1ex">on a Elementary School
near Heidelberg the nine-years-old pupils learn <br>
programming with Delphi 10.3 Community Edition. In one of
the programs <br>
they use 'Type ZimmerType = (Küche, Wohnzimmer,
Schlafzimmer);", <br>
</blockquote>
<div><br>
</div>
<div>Having educational purposes in mind, can variable masking
be achieved through IDE itself, rather than the compiler.</div>
<div><br>
</div>
<div>If a character outside of ANSI range is met within an
identifier, IDE would replace it with something else.</div>
<div>So, instead of having "Küche" the source code would look
like "K_Ache". (the next character would be replaced with
_B, _C ..and so on)</div>
<div><br>
</div>
<div>It doesn't have to be done on the fly, it could be done
before starting the compilation. </div>
<div>There are two benefits with this approach:<br>
</div>
<div>* no changes are needed for the compiler. (works with any
version)</div>
<div>* the language rules of capitalization can be followed</div>
<br>
</div>
</div>
</blockquote>
<p>Living in Switzerland, where German is one of the national
languages, we oft face problems like this. <br>
</p>
<p>In this case, we simply substitute "ä" with "ae", "ö" with "oe"
and "ü" with "ue". So: Küche -> Kueche. And: "ß" -> "ss".</p>
<p>Freundliche Grüße aus der Schweiz :)</p>
<p><br>
</p>
</body>
</html>