Domingo Alvarez Duarte wrote:
> Look at http://en.wikipedia.org/wiki/Sizeof they explain it there.
> [..] The sizeof operator must take into account the 
> implementation of the underlying memory allocation scheme to obtain the 
> sizes of various datatypes. sizeof is usually a compile-time operator, 
> which means that during compilation, sizeof and its operand get replaced 
> by the result-value. [..]

        Sounds good, though I see some wiggle room in that excerpt
        ("/usually/ a compile-time operator").

        I looked at the ANSI C++ spec (ISO 14882), but could not find a clear
        definition on this.

        Certainly empirical tests with VS and g++ show the string doesn't end
        up in the runtime binary, but that's dangerous to go by as it may be
        implementation specific. I believe I saw a citation that said sizeof()
        was compile-time in pre-C99 specs, which seems to imply it might not
        be the case in post-C99 specs.

        I defer to others more knowledgeable on this, as I spent a bit of time
        sniffing around on google but couldn't find language specific on whether
        or not the string needs to be excluded from the runtime binary.
_______________________________________________
fltk-dev mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-dev

Reply via email to