Raised This Month: $ Target: $400
 0% 

copyback


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
pRED*
Join Date: Dec 2006
Old 04-23-2007 , 23:07   copyback
Reply With Quote #1

How do you make a function copy back?

Like when you change the passed parameters in the function they are also changed where they are called from?
Like pointers in C..
pRED* is offline
regalis
Veteran Member
Join Date: Jan 2007
Location: F*cking Germany
Old 04-24-2007 , 09:56   Re: copyback
Reply With Quote #2

As far as i know Arrays are always passed by reference.
I would make other types global!?

Any other idea?
__________________
regalis is offline
VEN
Veteran Member
Join Date: Jan 2005
Old 04-24-2007 , 14:42   Re: copyback
Reply With Quote #3

Code:
func(&param) {
        param = /* something */
}
VEN is offline
pRED*
Join Date: Dec 2006
Old 04-24-2007 , 18:21   Re: copyback
Reply With Quote #4

Oh cool thanks VEN.
pRED* is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 06:37.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode