[Lazarus] Proposal: Allow Umlaute and Accented Characters in Identifiers
Dmitry Boyarintsev
skalogryz.lists at gmail.com
Fri Jul 3 18:44:21 CEST 2020
On Fri, Jul 3, 2020 at 10:08 AM Special via lazarus <
lazarus at lists.lazarus-ide.org> wrote:
> on a Elementary School near Heidelberg the nine-years-old pupils learn
> programming with Delphi 10.3 Community Edition. In one of the programs
> they use 'Type ZimmerType = (Küche, Wohnzimmer, Schlafzimmer);",
>
Having educational purposes in mind, can variable masking be
achieved through IDE itself, rather than the compiler.
If a character outside of ANSI range is met within an identifier, IDE would
replace it with something else.
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)
It doesn't have to be done on the fly, it could be done before starting the
compilation.
There are two benefits with this approach:
* no changes are needed for the compiler. (works with any version)
* the language rules of capitalization can be followed
thanks,
Dmitry
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20200703/88053394/attachment.html>
More information about the lazarus
mailing list