View Single Post
Old 02-04-2003, 09:44 AM   #3 (permalink)
SuperFerrell
Registered User
 
SuperFerrell's Avatar
 
Join Date: Feb 2003
Location: an obscure fold of space-time
Posts: 2
SuperFerrell is on a distinguished road
Send a message via AIM to SuperFerrell
yes, I tried that, and it worked, but I'd rather use a reference to the object instead of a pointer to the object when assigning... with the pointer, I'm stuck using:
Code:
token x;
const int EOF_TOK = 7;
//....
token* y = x;
token* z = EOF_TOK;
I just decided to scrap the operator= and just have to use y.tokenID = x.tokenID or y.tokenID = EOF_TOK; ... while it isn't fancy and cool, it works, just extra typing in MANY lines of code
SuperFerrell is offline   Reply With Quote