Results 1 to 5 of 5

Thread: Don't know about Namespace in programming

  1. #1
    Join Date
    Dec 2009
    Posts
    48

    Don't know about Namespace in programming

    Hello friend,

    I am Bsc(IT) student, I need your help to understand the concept of 'Namespace' of the programming. I don't have any idea about the use of Namespace. I ahve searched many book for this concept of programming, unfortunately didn't get enough details. If you have knowledge about the ' 'Namespace', then please let me know that. I would greatly appreciate your any help.

  2. #2
    Join Date
    Apr 2008
    Posts
    1,948

    Re: Don't know about Namespace in programming

    A Namespace is a set that includes variables and functions, classes, everything you want in one set. The concept of namespace is particularly used in programming (Java, C #, C + +) And in technologies XML with particular RDF and ontologies. Many languages provide a common namespace for identifiers for variables, functions and special operators and do not have the ability to handle new namespaces. Conventions on the names of identifiers must then be adopted by programmers.

  3. #3
    Join Date
    May 2008
    Posts
    2,012

    Re: Don't know about Namespace in programming

    Some languages offer namespaces: namespace in C + +, Packages in Java or modules in Python. Common Lisp provides Packages which are collections of symbols In addition to the namespaces provided in the standard language. In Ada the package is a Module that defines a namespace with an encapsulation rigorous. We created a namespace for its library, and that work, the user can use any names he wants, it will not conflict. SFML (to name it) uses this system. It is written in a namespace: sf.

  4. #4
    Join Date
    May 2008
    Posts
    2,297

    Re: Don't know about Namespace in programming

    Hi friend, following is the example of 'Namespace':
    Code:
    # define PERSO_HPP
    # ifndef PERSO_HPP
     
    namespace Vanger1
    {
            class Me3
            {
            private:
                    / / Attributes
     
            Public:
                    / /Prototype for my methods
            };
     
           
            int square3(int);
     
            / / Variables
            int worth2=5;
    } 
    / / End namespace

  5. #5
    Join Date
    Oct 2005
    Posts
    2,393

    Re: Don't know about Namespace in programming

    Namespaces help to build modular programs. For example, the symbol function "sin" could refer to the calculation of sinusoid in a namespace consisting of mathematical functions and sin in English in another namespace dealing with religious issues. This avoids the inevitable conflict between symbols synonyms.Many languages provide a common namespace for identifiers for variables, functions and special operators and do not have the ability to handle new namespaces.

Similar Threads

  1. What are Name Resolution Rules for Namespace in PHP?
    By Bigga Lexx in forum Software Development
    Replies: 4
    Last Post: 21-02-2010, 06:20 AM
  2. What is the difference between a Class Library and a Namespace
    By Joyjeet in forum Software Development
    Replies: 5
    Last Post: 22-01-2010, 02:55 PM
  3. What is Namespace in XML
    By Elieis in forum Software Development
    Replies: 3
    Last Post: 21-11-2009, 05:18 AM
  4. Namespace Server no longer available
    By Walby in forum Networking & Security
    Replies: 3
    Last Post: 09-04-2009, 02:36 PM
  5. Replies: 3
    Last Post: 13-12-2008, 01:49 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,714,062,150.89448 seconds with 16 queries