Re: Question about bgt handles
Thank you to all for the information on pointers, passing by value versus reference, and everything in between. I just want to address one topic, that being creating copies of arrays.In java, we would write a for-loop that would iterate over both arrays
Re: Question about bgt handles
Thank you to all for the information on pointers, passing by value versus reference, and everything in between. I just want to address one topic, that being creating copies of arrays.In java, we would write a for-loop that would iterate over both arrays
Re: Question about bgt handles
Another thing to consider when using pass by value and pass by reference, is that of the nature of the call. Note: all code is in c++. I do not know bgt. I'm assuming that bgt has some equivalent as it is a distant derivative of C, but so apply this to bgt
Re: Question about bgt handles
Another thing to consider when using pass by value and pass by reference, is that of the nature of the call. Note: all code is in c++. I do not know bgt. I'm assuming that bgt has some equivalent as it is a distant derivative of C, but so apply this to bgt
Re: Question about bgt handles
CAE_Jones wrote:Are handles supported for strings in BGT? It's kinda weird about handles for things like vectors.Not sure here, I just used it to clarify things, didn't test it though and creating copies of strings doesn't take too long usually, don't use
Re: Question about bgt handles
Are handles supported for strings in BGT? It's kinda weird about handles for things like vectors.@1: Handles make more sense if you have experience with C / C++ / C#. Except they do some confusing things at times, even then, compared to their low-level
Re: Question about bgt handles
Hi,you can do so too, but this will internally create copies of the data you move around. When coming from the Java world, you most probably won't get in touch with the call by reference and call by value patterns.Call by value means that whenever you assign
Question about bgt handles
Hi,I'm stuck on the idea of handles with BGT. At the moment, I develop mainly in Java, and I'm used to passing objects directly to functions. For instance, I can do this with an array:Person person = new Person();Person[] personArray = new Person[1];personArray[0