Search:

Type: Posts; User: griffin2000

Search: Search took 0.00 seconds.

  1. Quite.. I realized there inumerable ways for you...

    Quite.. I realized there inumerable ways for you to break code that returns in this way (e.g. if testA was storing a reference to another temporary object on the stack). But that wasn't point of...
  2. They don't... But then I don't have any proof to...

    They don't... But then I don't have any proof to the contrary :-) I've alway ASSUMED that this was safe (that compiler was gauranted to copy the returned variable before the stack was popped), and...
  3. Is it ALWAYS safe to return temporary variables ?

    Is it always safe to return temporary stack variables from a function as long as you don't return a reference or a pointer ? So is this always gauranteed to be safe, on all...
  4. Replies
    2
    Views
    3,053

    What is a "old-style format list"

    When I make this mistake in C programming:


    void myF(); //Extra semi colon here
    {
    printf("hello");
    }


    I get this error in MSVC:
Results 1 to 4 of 4