API : constness ?
Andrea Griffini
agriff at tin.it
Tue Jun 1 17:28:35 EDT 2004
On Tue, 01 Jun 2004 11:42:03 -0700, Erik Max Francis <max at alcyone.com>
wrote:
>Yes. And if a were declared
>
> static const int a = 3;
>
>it would be illegal. That is the case that I was discussing.
I completely missed the original poster point. Re-reading
it indeed the literals could be in read-only memory, and
the pointers to those literals could be too (if declared const).
Sorry for all the nonsense babbling I posted...
Andrea
More information about the Python-list
mailing list