Thread: name binding from one template to another

  1. #16
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,895
    1) They have everything to do with it. But as I said, you misunderstand what "resolve" and "bind" means. The compiler doesn't need to know the exact type in order to bind names.

    2) They can be. I have said so many times.
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  2. #17
    Registered User
    Join Date
    May 2006
    Posts
    1,579
    Thanks CornedBee,


    From your help on this thread, I understand some of my points is wrong -- in the past.

    Just curious to ask you, why the Spec involves the concept of dependent name and non-dependent name?

    1. from bound point of view

    From our discussion, dependent names should all be bound during instantiation time, but not all non-dependent names (like v and tmp in my sample) are bound during definition time.

    So, from bound point of view, dependent name and non-dependent name do not distinguish anything?

    2. from resolve point of view

    dependent name and non-dependent name could distinguish names resolved at definition/instantiation time? I am not 100% sure about this.

    It is appreciated if you could comment and give your definition about what is the differences between bound and resolved.

    Quote Originally Posted by CornedBee View Post
    1) They have everything to do with it. But as I said, you misunderstand what "resolve" and "bind" means. The compiler doesn't need to know the exact type in order to bind names.

    2) They can be. I have said so many times.

    have a good weekend,
    George

  3. #18
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,895
    I have no longer the faintest idea what concepts you associate with the words "bind" and "resolve".
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  4. #19
    Registered User
    Join Date
    May 2006
    Posts
    1,579
    Thanks CornedBee,


    It is you used the term bind and resolve in post #16. So, I am asking your meaning here. It is aprpeciated if you could let me know what do you mean. :-)

    Quote Originally Posted by CornedBee View Post
    I have no longer the faintest idea what concepts you associate with the words "bind" and "resolve".

    regards,
    George

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Specialising a member function with a template template parameter
    By the4thamigo_uk in forum C++ Programming
    Replies: 10
    Last Post: 10-12-2007, 04:37 AM
  2. Screwy Linker Error - VC2005
    By Tonto in forum C++ Programming
    Replies: 5
    Last Post: 06-19-2007, 02:39 PM
  3. error: template with C linkage
    By michaels-r in forum C++ Programming
    Replies: 3
    Last Post: 05-17-2006, 08:11 AM
  4. late binding with template function
    By clf in forum C++ Programming
    Replies: 1
    Last Post: 03-28-2002, 01:13 PM
  5. oh me oh my hash maps up the wazoo
    By DarkDays in forum C++ Programming
    Replies: 5
    Last Post: 11-30-2001, 12:54 PM