Search:

Type: Posts; User: Garfield

Search: Search took 0.03 seconds.

  1. Thread: goto, why not

    by Garfield
    Replies
    39
    Views
    7,146

    All you have to do when programming with goto is...

    All you have to do when programming with goto is to keep it in a respectable manner. Don't have code like:


    label1: printf("This is label1\n");
    label2: printf("This is label2\n");...
  2. Thread: goto, why not

    by Garfield
    Replies
    39
    Views
    7,146

    Yes, I'd say a limit of 3 goto's in one source...

    Yes, I'd say a limit of 3 goto's in one source (.c) file.
  3. Thread: goto, why not

    by Garfield
    Replies
    39
    Views
    7,146

    Why not? If you have a line like this: ...

    Why not? If you have a line like this:

    ...code...
    goto label;
    ...code...

    And you absolutely can't find the "label", then there is a nice function to search for a word through source. Not...
  4. Thread: goto, why not

    by Garfield
    Replies
    39
    Views
    7,146

    I don't think there is anything wrong with goto. ...

    I don't think there is anything wrong with goto. I use it just as I would with any other code. I find it quite convenient. It is an easy way to 'jump'.

    --Garfield
Results 1 to 4 of 4