Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / Get variable address in memory

Author
Message
BriereAnthony
13
Years of Service
User Offline
Joined: 20th Feb 2011
Location:
Posted: 20th Feb 2011 15:32
Hello, I'm new to darkbasic pro and I'd like to know if it's possible to get the address of a variable in memory?

My problem is that I'd like to modify the value of some variables inside functions without using global variables, using something like pointers (I don't know if they exist in Darkbasic pro so...)

Thank you for your help!
enderleit
17
Years of Service
User Offline
Joined: 30th May 2007
Location: Denmark
Posted: 20th Feb 2011 17:33 Edited at: 20th Feb 2011 17:34
There are no variable pointers or references in DBPRO...

You might be able to hack something together using make memory... but it wouldn't be very readable...



BriereAnthony
13
Years of Service
User Offline
Joined: 20th Feb 2011
Location:
Posted: 20th Feb 2011 22:16
Ohhh alright then!

Thanks alot for your help!

Login to post a reply

Server time is: 2024-09-29 02:35:54
Your offset time is: 2024-09-29 02:35:54