<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<div class="moz-cite-prefix">Am 01.02.2020 um 07:54 schrieb Mr Bee
via Pas2js:<br>
</div>
<blockquote type="cite"
cite="mid:49080188.127451.1580540066451@mail.yahoo.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div class="ydpeebc9e80yahoo-style-wrap"
style="font-family:Helvetica Neue, Helvetica, Arial,
sans-serif;font-size:16px;">
<div>
<div dir="ltr" data-setdir="false">Hi,</div>
<div dir="ltr" data-setdir="false"><br>
</div>
<div dir="ltr" data-setdir="false">Just update my pas2js to
v1.5 (trunk). It seems pas2js doesn’t support -Sj option
(writeable constant). Would you please support it? I think
writeable constant is a design mistake of Pascal language by
Borland that we have to deal forever. Personally, I always
disable it, since I knew it could be disabled. FPC should
disable it by default too, at least on ObjFPC mode. A
constant should never be writeable, ever.</div>
<br>
</div>
</div>
</blockquote>
<br>
FPC values backwards compatibility. As such a mode won't be changed
in such a way that existing code suddenly no longer compiles without
good reason.<br>
<br>
Also as I wrote to Michael, the use of writable consts is as static,
scoped variables if one doesn't want to resort to OOP (and for
simple functions that might indeed be overkill).<br>
<br>
Regards,<br>
Sven<br>
</body>
</html>