in reply to Re^11: Psychic Disconnect and Object Systems
in thread Psychic Disconnect and Object Systems
Which I've comprehensively demonstrated is utter drivel.
No, you only demonstrated it's the case for constants, which wasn't one of the three!
When you're done lying, run the following programs:
#include <stdio.h> int main() { int i; for (i=0; i<2; ++i) { const int j = i; printf("%d\n", j); } return 0; }
#include <stdio.h> int f(const int k) { printf("%d\n", k); } int main() { int i; for (i=0; i<2; ++i) { f(i); } return 0; }
Unless you can demonstrate that people don't consider "j" and "k" to be read-only, you haven't demonstrated anything.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^13: Psychic Disconnect and Object Systems
by BrowserUk (Patriarch) on Apr 17, 2011 at 19:37 UTC | |
by ikegami (Patriarch) on Apr 17, 2011 at 23:22 UTC | |
|