Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Copy constructor
Message
From
16/01/1997 03:35:39
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Copy constructor
Miscellaneous
Thread ID:
00017504
Message ID:
00017504
Views:
93
Hi, guys. Here's a question of the functionality like C++ copy constructor. I need to send the instance of a class, which was derived from Cutsom, to sub-rountines as parameter, and those routines will modify properities of the passed object. I don't want their changes affect the upper level program, so I need to pass the object by reference. Since the @ sign do nothing to an object, it seems the only way is to duplicate the existing object. i looked up all the manuals but found nothing can deal with this situation. It could be a common requirement, i think there must has solution somewhere. Thanks ahead.
Next
Reply
Map
View

Click here to load this message in the networking platform