Hey, I'm glad you're actually taking my advice seriously! Too many people just ignore me...
Actually, you simply implemented your initial second post, after Pragma's first response. It's not a bad idea except that mine uses up less memory. I was thinking of preemptively responding to this idea but I wasn't sure if you'd go with it...
Anyway, your solution uses a pointer per class instance where mine does no such thing. Plus, if you're just going to store an integer, you might as well just store the value instead of a pointer to the value, right?
Say, what's up with your new ultra-condensed indentation style?
Okay, I'm going to take a cheeky someone's advice and go to sleep...
|