Passing a TImage to a function

BlitzMax Forums/BlitzMax Programming/Passing a TImage to a function

Raz(Posted 2012) [#1]
Hi everyone, the following code..

Function DoSomething(someImage:Image)

End Function


someImage will always just be a pointer to whatever image is provided, right?

Thanks


xcessive(Posted 2012) [#2]
Bit rusty on my Blitzmax but I'm pretty sure all objects are passed by reference, as are arrays.


Pineapple(Posted 2012) [#3]
xcessive is correct. numeric values and strings are passed by value by default, everything else by reference.


Raz(Posted 2012) [#4]
Fantastic, thank you :)