Procedure Function

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Bryan Parkoff

    #1

    Procedure Function

    The C Compiler uses procedure function. It allows the programmers to
    define global variables and global functions. They attempt to test using
    debuging tools and often bugs are harder to find. If you use namespace, it
    would be helpful to isolate global variables and global functions in the
    right group.
    The C++ Compiler allows local variables and local functions to be bound
    inside struct or class. It makes easier to define one object as class so
    all variables and functions can be manipulated inside class.
    The problem is that this object has a pointer. You define class inside
    main() function. You decide to execute an object. The pointer is placed in
    the register and then pointer gives the memory address to locate variables
    and functions. The procedure function does not need to have pointer.
    Without pointer, it improves performance.
    Can you please explain? Why do you prefer to design your project by
    focusing to isolate variables and functions inside object as class? Why
    can't namespace be used? Procedure Functions and OOP allow to be reuseable
    if you want to run more than one object at the same time.

    --

    Yours Truly,
    Bryan Parkoff


  • =?UTF-8?B?RXJpayBXaWtzdHLDtm0=?=

    #2
    Re: Procedure Function

    On 2007-12-27 22:45, Bryan Parkoff wrote:
    The C Compiler uses procedure function. It allows the programmers to
    define global variables and global functions. They attempt to test using
    debuging tools and often bugs are harder to find. If you use namespace, it
    would be helpful to isolate global variables and global functions in the
    right group.
    The C++ Compiler allows local variables and local functions to be bound
    inside struct or class. It makes easier to define one object as class so
    all variables and functions can be manipulated inside class.
    The problem is that this object has a pointer. You define class inside
    main() function. You decide to execute an object. The pointer is placed in
    the register and then pointer gives the memory address to locate variables
    and functions. The procedure function does not need to have pointer.
    Without pointer, it improves performance.
    Can you please explain? Why do you prefer to design your project by
    focusing to isolate variables and functions inside object as class? Why
    can't namespace be used? Procedure Functions and OOP allow to be reuseable
    if you want to run more than one object at the same time.
    Are you asking a question? Because it seems to me like you answer your
    questions with the last sentence. Anyway, for questions about OOP in
    general groups like comp.object are better suited.

    --
    Erik Wikström

    Comment

    Working...