Path: csiph.com!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Marko Rauhamaa Newsgroups: comp.lang.python Subject: Re: Question about math.pi is mutable Date: Sat, 07 Nov 2015 20:00:29 +0200 Organization: A noiseless patient Spider Lines: 13 Message-ID: <87y4e9y9j6.fsf@elektro.pacujo.net> References: <87d1vlzy4p.fsf@elektro.pacujo.net> <878u69zxww.fsf@elektro.pacujo.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx02.eternal-september.org; posting-host="b7cb1518d23ec19d482dcc9c31d30fdd"; logging-data="14228"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19gCza0HHHBbzkVo3H8GotD" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:qphP/DaVKCLHCRe+6bknLiALSCk= sha1:718iJpbIFAMwaYzDwLxG5IZYfCE= Xref: csiph.com comp.lang.python:98403 Grant Edwards : > I take it you don't write embedded code that runs from ROM? I do. The > const keyword is the most valuable addition to the C language since > the function prototype. Without it, you used to have to jump through > all sorts of hoops to get read-only data placed into read-only memory. If all you need is a linker directive that places data in a read-only section, "const" is a very ineffective tool that clutters the code and forces you to sprinkle type casts around your code. Marko