@
cire: Who's definition of undefined are you using here? More accurately, the behavior of this program is
unspecified meaning that the standard defers the requirements of its behavior to some other parameter. In this case it's the calling convention that takes precedence, but that is only because a dozen other factors do not come into play in this specific instance. I'm not splitting hairs here:
http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2011/n3242.pdf
Section 1.3 outlines the definitions that I'm following (SIDE_NOTE: I personally think that the guy who wrote the definition for 'ill-formed' is well overdue for a sharp kick to their ass). I never stated that the observed behavior of this program was indicative of C++ standard behavior. In fact I have spent an unhealthy amount of time and energy rephrasing things to avoid giving anyone that impression.
Keep in mind that the language specification of the function (which is a component of the calling convention) is part of the implementation; although I purposefully avoided using the term "implementation defined" specifically because the definition that appears in the above document does not fit. I tried and failed to introduce my own terminology by calling this behavior "platform-specific\dependent" and I'm starting to think that me dancing around terms in the standard is at least half of the reason that my posts look like so much insane non-sense.
Any chance you can point to that documentation? |
Sure, for what function? From which release of which compiler adhering to which standard? On what OS(Kernel) running on what architecture? Under what circumstances? With what optimization level set? Debug or Release? Break points or no
1? Statically or dynamically linked
1? These are of course rhetorical questions, I'm obviously not going to run around the net like a jack-ass seeking approval for your amusement. If you have been following this thread then you know why there is no definitive answer to this question given the complete absence of information that you have provided.
1: Assuming it's relevancy, otherwise omit qualifier.
@
dhayden: I see you're post. You've clearly been skipping around the thread and just causally gleaming information from here or there. So I will try again in the morning to address your post with a response that isn't fixated on eviscerating your asinine or otherwise loaded comment. I've already stated my dislike of people changing the parameters of a problem to fit their use-case version of an argument so I can only assume that you are trying to goad some kind of a reaction, I'll ignore that. Also please note that your blurb:
suggests, I know incorrectly given your past contributions, that you are in over your head on this topic. Did you even bother to notice how everyone else who contested my statements either provided a link to an article or a commonly recognized quotation\statement from the standard? Don't let laziness or apathy discredit you here. I am making a statement given the information provided from the OP explaining the reason for his observation if you have some other evidence that shows that this behavior is different from that which is observed without significantly changing the context then I would love to see it. I am not some lounge lizard looking for attention.
If I wanted mindless regurgitation of irrelevant information I would still be visiting Reddit.