Thread: perl to c++
View Single Post
Old 11-15-2006, 01:05 AM   #5 (permalink)
teknomage1
Jack of all trades
 
teknomage1's Avatar
 
Join Date: Feb 2005
Location: Los Angeles
Posts: 598
teknomage1 is on a distinguished road
Send a message via AIM to teknomage1
If you translated the derived classes can't you just take the three methods from one of the derived classes and declare them virtual?
I don't think you need to do anything like the ocntortions perl puts itself throught o generate and bless a hash to be the object, just code the object/class the way you would a normal C++ class. For the abstract class it seems you could just work from the comments since the majority of the "code" present is just error reporting and book keeping code.
__________________
Stop intellectual property from infringing on me
teknomage1 is offline   Reply With Quote