Thread: Token pasting

  1. #1
    Super Moderator
    Join Date
    Sep 2001

    Token pasting

    Would someone like to explain how this works, and what to do, bearing only this fact in mind: I heard the term 5 minutes, and all I know is that it can help me with my program. Basically i need to create a class, and give it a name that the program would generate by way of a character string.

  2. #2
    Skunkmeister Stoned_Coder's Avatar
    Join Date
    Aug 2001
    You've lost the plot. Token pasting occurs even before the code is compiled so it wont help you.
    Free the weed!! Class B to class C is not good enough!!
    And the FAQ is here :-

  3. #3
    ¡Amo fútbol!
    Join Date
    Dec 2001
    Like a macro, it is performed before everything. It pastes two items (tokens) together. From then on, the variable name can be used just as if it had been declared.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Connecting to a mysql server and querying problem
    By Diod in forum C++ Programming
    Replies: 8
    Last Post: 02-13-2006, 10:33 AM
  2. Post...
    By maxorator in forum C++ Programming
    Replies: 12
    Last Post: 10-11-2005, 08:39 AM
  3. Dikumud
    By maxorator in forum C++ Programming
    Replies: 1
    Last Post: 10-01-2005, 06:39 AM
  4. Please Help - Problem with Compilers
    By toonlover in forum C++ Programming
    Replies: 5
    Last Post: 07-23-2005, 10:03 AM
  5. Parsing and Tokens (strtok)
    By readerwhiz in forum C Programming
    Replies: 6
    Last Post: 04-22-2002, 09:57 AM