General information
Category:
COM/DCOM and OLE Automation
I have to disagree. There's always a need to pass an object by value when you want to be sure that the
called function will not modify the original object. Otherwise, the constness of the param object cannot be assured.
Another case when this is necessary is when you're using classes that you cannot change. So, good or bad design,
they cannot be changed and you need pass by value... which is not possible in VFP.
Vlad
>In general there's no need to ever pass an object by value - if you do, I'd say there's a design problem that can be solved easily by creating data members that can be copied.
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only