Log in

View Full Version : What is the difference?


eXtremeTim
06-10-2005, 06:17 AM
between $dataman->setr() and $dataman->set() I just want to make sure im using the right one. Im thinking r is for handleing reply data?

Marco van Herwaarden
06-10-2005, 08:33 AM
I think you should always use 'set'.

Andreas
06-10-2005, 12:11 PM
set() uses call by value semantic, whereas setr() uses a reference, eg. you can only pass a variable with setr().

Marco van Herwaarden
06-10-2005, 12:46 PM
And 'set' is just a front end for 'setr' ;)