Thread: Underscores

  1. #16
    Carnivore ('-'v) Hunter2's Avatar
    Join Date
    May 2002
    Posts
    2,879
    >>But the built-in types are not identifiers, they're keywords.
    If I ever make a programming language, I'll be sure to eliminate the distinction

    >>Now you're starting to word your explanations like I do, and that's frightening.
    At least I'm learning something from your explanations

    >>Even more confusingly, a namespace is a name space, but a name space is not necessarily a namespace.
    And yet, a namespace isn't one of the four name spaces?

    So there's name space (abstract), four name spaces (language-defined), and any number of namespaces (user-defined), and all three are distinct concepts although interconnected in a fundamental sort of way. Got it

    Prelude, you have an indescribable way of getting your point across in the most confusing manner possible.

    **EDIT**
    Just some housekeeping details:
    -name spaces and namespaces are both examples of name spaces.
    -->There is no naming conflict here because one 'name space' is in the (abstract) name space and one is in the (language-defined) name space
    -in Prelude's code example, main() didn't return a value
    Last edited by Hunter2; 09-12-2004 at 03:09 PM.
    Just Google It. √

    (\ /)
    ( . .)
    c(")(") This is bunny. Copy and paste bunny into your signature to help him gain world domination.

  2. #17
    i dont know Vicious's Avatar
    Join Date
    May 2002
    Posts
    1,200
    Yeah, she'll give some info and you wont undestand it until a week later, it will just hit you,

    "Oh, so its a name space..."
    What is C++?

  3. #18
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,897
    >At least I'm learning something from your explanations
    That's no small feat.

    >And yet, a namespace isn't one of the four name spaces?
    A namespace name is in the tag name space.

    >Prelude, you have an indescribable way of getting your point across in the most confusing manner possible.
    I really do try to be clear, but I have a tendency to think in terms that people find confusing. But I'm sure you'll admit that it makes that "Aha!" moment much more satisfying when you were completely lost to begin with.

    >-in Prelude's code example, main() didn't return a value
    Sure it did, it returned 0 by default.
    My best code is written with the delete key.

  4. #19
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    I think this covers it for C
    Code:
    struct test /* tag */ {
        int test; /* member */
    };
    void test /* ordinary */ ( ) {
        struct test foo;
        foo.test = 1;
        if ( foo.test == 1 ) goto test;
        printf( "Woo Hoo\n" );
        test: /* label */
        return;
    }
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  5. #20
    Carnivore ('-'v) Hunter2's Avatar
    Join Date
    May 2002
    Posts
    2,879
    >>it returned 0 by default.
    Thanks for ruining it

    >>A namespace name is in the tag name space.
    Thanks for ruining it Oh wait, that didn't apply did it? Because I was referring to namespaces as specializations of the abstract name space, not the names of namespaces

    Well, thanks Prelude for the explanation of the three name( )space's as well as the pun sparring match, and thanks to everyone else who helped out with regard to the real topic of the thread before I got sidetracked

    **EDIT**
    Thanks for the example Salem.
    Just Google It. √

    (\ /)
    ( . .)
    c(")(") This is bunny. Copy and paste bunny into your signature to help him gain world domination.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Converting underscores into spaces?
    By Cactus in forum C Programming
    Replies: 3
    Last Post: 09-24-2005, 12:34 PM
  2. Leading Underscores
    By laserlight in forum C++ Programming
    Replies: 19
    Last Post: 09-04-2005, 02:16 AM
  3. Why Declare in .H but Define in .CPP ?
    By Krak in forum C++ Programming
    Replies: 10
    Last Post: 07-30-2005, 12:36 AM
  4. functions with preceeding underscores
    By codec in forum C Programming
    Replies: 4
    Last Post: 04-28-2004, 10:07 AM
  5. Hungarian Notation
    By gamegod3001 in forum A Brief History of Cprogramming.com
    Replies: 24
    Last Post: 10-13-2001, 11:17 AM