|
From: | Dmitry Gutov |
Subject: | bug#40671: [DOC] modify literal objects |
Date: | Sun, 26 Apr 2020 20:39:38 +0300 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 |
On 26.04.2020 19:58, Eli Zaretskii wrote:
That program demonstrates that in C one CAN change a "constant" array.
When you first change it to a "non-constant" one, as far as the compiler is concerned? It's an escape hatch. The same way you "can" funcall a string:
int main (void) { return ((int(*) (int))"abc")(1); } It will blow up at runtime, of course.Neither will be the case with "constant" Lisp forms we are talking about. No runtime errors (only subtle, hard to investigate bugs from time to time), and no compilation warnings. The only warnings at all will be in the manual.
[Prev in Thread] | Current Thread | [Next in Thread] |