Thread: NameSpaces

  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2004
    Bombay, India
    Rep Power


    I've got some doubts while I was going thru' some books...actually I've forgotten what namespaces cld anyone explain it in simple terms???

    Also there is another stupid Python an object oriented language or a programming language or a scripting language??

  2. #2
  3. Hello World :)
    Devshed Frequenter (2500 - 2999 posts)

    Join Date
    Mar 2003
    Hull, UK
    Rep Power
    All of the above. Depending on who you talk to you'll get different answers - including "Dynamic Language", "Agile Programming language" etc.

    Anyway, namespaces... in the simplest terms, a namespace describes which variables/objects can see each-other. You can think of your programs namespaces as being laid out like a house.

    I live in a house (the global namespace), in my house there are rooms (local namespaces). Separated by walls of course .

    Assume that I wanted to ask my sister something. This would be easy if she was in the same room but if she's not then I'd have to shout. As long as she's in the house then fine: "Sam, how was work?". Done.

    If she's not then I have a problem since the question/request/message has nowhere to go! [This is where we would get an error .]
    Thats the general idea anyway; possibly not the best explanation . Get it?

    Mark .
    programming language development: Hula

IMN logo majestic logo threadwatch logo seochat tools logo