in reply to Re^9: Psychic Disconnect and Object Systems
in thread Psychic Disconnect and Object Systems

I didn't.

«There is no such thing as "construction time" for a constant.»

Not "trying to prove".

If it's clearer: Why are are you wasting your time prove they're created at compile-time? Like you said, it's an undeniable truth.

So I demonstrated that you were talking utter drivel.

Again, where? did something get erased? I see no mention of constant variables or constant parameters.

You didn't clear anything up :(

  • Comment on Re^10: Psychic Disconnect and Object Systems

Replies are listed 'Best First'.
Re^11: Psychic Disconnect and Object Systems
by BrowserUk (Patriarch) on Apr 17, 2011 at 09:09 UTC

    You said:

    All three are constructed at run-time.

    Which I've comprehensively demonstrated is utter drivel.

    The rest is just pointless noise. I'm done. Are you?


    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.

      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.

        This has no relevance to the original discussion.

        The fact that you are confusing the C keyword const with the programming concept of "Constant (programming), a value that, unlike a variable, cannot be reassociated with a different value" isn't my problem.

        To wit: in your entirely irrelevant examples above the const variable j and the const parameter k are reassociated with two different values each.

        And although the language allows you to define const ints, you should know better.

        Ints are passed by value, so there is no point in making them const. modifications cannot possibly leak scope anyway. Bad code is bad code, regardless of what point you thought you were trying to make with it.

        Now please. If you cannot stick to the subject, just stop eh?


        Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
        "Science is about questioning the status quo. Questioning authority".
        In the absence of evidence, opinion is indistinguishable from prejudice.
          A reply falls below the community's threshold of quality. You may see it by logging in.