Re: A question on string literals



Chris Torek wrote:

[ snip ]

Once you understand the idea of "object context" and "value context", you simply have to memorize which operators have which context(s):

    &foo       - object context
    sizeof foo - object (or maybe even "sizeof") context
    foo + bar  - two value contexts
    foo = bar  - one object context, one value context
    ++foo      - object context

and so on.

I know you Chris and I love you like a brother but given..
    int foo = 2, bar = 3;

    &foo       - is the address of foo, a 'value' of type (int*)
    sizeof foo - is a value (4 at my house) of type (size_t)
    ++foo      - is a value (now 3) of type (int)

None of these have 'object' context as I see it. What are you trying to tell us here?

--
Joe Wright
"Everything should be made as simple as possible, but not simpler."
                    --- Albert Einstein ---
.



Relevant Pages

  • Re: from the mags
    ... > context, we want context! ... Francisco), who prides himself in his worldliness, straight as well. ... didn't say was that this was a bar of the "hard" variety. ... The programming language. ...
    (soc.motss)
  • Re: Mighty trackpad?
    ... But at that point Apple would start designing the system to make use of a context button. ... Application developers have little choice but to implement context menus as a totally optional method for manipulation of content. ... I can't think of a place where a context menu is a better choice than a static menu bar. ... Righting clicking on the desktop and clicking change desktop background or going through system preferences? ...
    (comp.sys.mac.advocacy)
  • Re: Mighty trackpad?
    ... But at that point Apple would start designing the system to make use of a context button. ... Application developers have little choice but to implement context menus as a totally optional method for manipulation of content. ... I can't think of a place where a context menu is a better choice than a static menu bar. ...
    (comp.sys.mac.advocacy)
  • Re: McGurks Bar bomb - Coverup
    ... > his pathetic historical revisionism, half the NI threads would cease to ... It's part of the mythology of republicanism to pretend that the horror ... And when it's pointed out that McGurk's bar ... Here's the context of McGurk's bar. ...
    (soc.culture.irish)
  • Re: Mighty trackpad?
    ... But at that point Apple would start designing the system to make use of a context button. ... Application developers have little choice but to implement context menus as a totally optional method for manipulation of content. ... I can't think of a place where a context menu is a better choice than a static menu bar. ...
    (comp.sys.mac.advocacy)