CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 8 of 8

Thread: scope

  1. #1
    Join Date
    Aug 2001
    Location
    New Orleans, Louisiana
    Posts
    98

    scope

    what is the scope discipline used by C++?


  2. #2
    Join Date
    Feb 2002
    Location
    Somewhere in the United States.
    Posts
    58

    Re: scope

    What do you mean? You must be more specific than this!


  3. #3
    Join Date
    Aug 2001
    Location
    New Orleans, Louisiana
    Posts
    98

    Re: scope

    really don't know how to be more specific than that, but I'll try. Take for example Java, Java supports all three scoping disiplines, static, semi-dynamic, and dynamic. Another example, FORTRAN, only supports static scope.......my hunch is that C++ supports all three as does Java, but I wanted to be sure.


  4. #4
    Join Date
    Feb 2002
    Location
    Somewhere in the United States.
    Posts
    58

    Re: scope

    Yes, my understanding is that C++ supports all three of those scope types.

    Sorry, reading back over your letter I think I must have read it funny and that's why it didn't make immediate sense to me what you were asking. ;-)


  5. #5
    Join Date
    Aug 2001
    Location
    New Orleans, Louisiana
    Posts
    98

    Re: scope

    Just realized I made a HUGE typo, this should have been storage methods, and not scope. As far as I know, there are only two types of scoping mechanisms.....static and dynamic......Sorry for any confusion.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured